def showLogging(debug=False):
 try:
  log_level = logging.WARN
  log_format = LOG_FORMAT_DEBUG
  if debug:
   log_level = logging.DEBUG
  logging.basicConfig(level=log_level, format=log_format)
 except:
  logging.basicConfig()

def showLogging ( debug = False ) : try : log_level = logging . WARN log_format = LOG_FORMAT_DEBUG if debug : log_level = logging . DEBUG logging . basicConfig ( level = log_level , format = log_format ) except : logging . basicConfig ( )
shortcut for enabling log dump .