generic fix: logging checks context before read it
generic fix: logging checks context before read it