Small fixes in logging.