Only log when debug log level is enabled