Fixed a syntax error relating to logging