Do not log debug messages if __debug__ is not def