Fix a logging message and a comment