def get_debug():
    return _get_config_module().DEBUG or config.get_global_debug()
def debug(string):
    if _get_config_module().DEBUG or config.get_global_debug():
        outputs.print_debug(string)
Ejemplo n.º 3
0
 def get_debug(self):
     """
     Returns whether debug is toggled on or off.
     @return: True if debug is toggled on.
     """
     return config.get_global_debug() or self.config_module.DEBUG