Minor changes of logging.