Improve the logging errors