Fixing logging message formatting