def _logging_manager_aware_logger__find_caller(unused):
 f = sys._getframe(2).f_back
 rv = ('(unknown file)', 0, '(unknown function)')
 while hasattr(f, 'f_code'):
  co = f.f_code
  filename = os.path.normcase(co.co_filename)
  if (filename == logging._srcfile):
   f = f.f_back
   continue
  if (co in _caller_code_to_skip_in_logging_stack):
   f = f.f_back
   continue
  rv = (filename, f.f_lineno, co.co_name)
  break
 return rv

def _logging_manager_aware_logger__find_caller ( unused ) : f = sys . _getframe ( 2 ) . f_back rv = ( '(unknown file)' , 0 , '(unknown function)' ) while hasattr ( f , 'f_code' ) : co = f . f_code filename = os . path . normcase ( co . co_filename ) if ( filename == logging . _srcfile ) : f = f . f_back continue if ( co in _caller_code_to_skip_in_logging_stack ) : f = f . f_back continue rv = ( filename , f . f_lineno , co . co_name ) break return rv
find the stack frame of the caller so that we can note the source file name .