Couple small fixes to logging.