small cleanup to the logging