def enableLoggingErrorDebugging():
 print >>sys.stderr, 'WARNING'
 print >>sys.stderr, ('WARNING: nupic.support.enableLoggingErrorDebugging() was called to install a debugging patch into all logging handlers that will cause the program to fail if a logging exception occurrs; this call is for debugging only and MUST be removed before checking in code into production system. Caller: %s' % (traceback.format_stack(),))
 print >>sys.stderr, 'WARNING'
 def handleErrorPatch(*args, **kwargs):
  if logging.raiseExceptions:
   raise
 for handler in logging._handlerList:
  handler.handleError = handleErrorPatch
 return

def enableLoggingErrorDebugging ( ) : print >> sys . stderr , 'WARNING' print >> sys . stderr , ( 'WARNING: nupic.support.enableLoggingErrorDebugging() was called to install a debugging patch into all logging handlers that will cause the program to fail if a logging exception occurrs; this call is for debugging only and MUST be removed before checking in code into production system. Caller: %s' % ( traceback . format_stack ( ) , ) ) print >> sys . stderr , 'WARNING' def handleErrorPatch ( * args , ** kwargs ) : if logging . raiseExceptions : raise for handler in logging . _handlerList : handler . handleError = handleErrorPatch return
overrides the python logging facilitys handler .