Make some of the debug messages to respect the debug option