def enable_console_debug_logging():
 logger = logging.getLogger('github')
 logger.setLevel(logging.DEBUG)
 logger.addHandler(logging.StreamHandler())

def enable_console_debug_logging ( ) : logger = logging . getLogger ( 'github' ) logger . setLevel ( logging . DEBUG ) logger . addHandler ( logging . StreamHandler ( ) )
this function sets up a very simple logging configuration that is useful for troubleshooting .