def make_error_tracker():
 errors = []
 def error_tracker(msg):
  'Log errors'
  exc_str = ''
  if in_exception_handler():
   exc_str = exc_info_to_str(sys.exc_info())
   if (('python2.7/site-packages/gunicorn/workers/sync.py' in exc_str) and ('[Errno 11] Resource temporarily unavailable' in exc_str)):
    exc_str = ''
  errors.append((msg, exc_str))
 return ErrorLog(error_tracker, errors)

def make_error_tracker ( ) : errors = [ ] def error_tracker ( msg ) : exc_str = '' if in_exception_handler ( ) : exc_str = exc_info_to_str ( sys . exc_info ( ) ) if ( ( 'python2.7/site-packages/gunicorn/workers/sync.py' in exc_str ) and ( '[Errno 11] Resource temporarily unavailable' in exc_str ) ) : exc_str = '' errors . append ( ( msg , exc_str ) ) return ErrorLog ( error_tracker , errors )
return an errorlog .