Syntax error in logging