Improved the logging message