Changeset 6663 for anuga_core/source/anuga/utilities/log.py
- Timestamp:
- Mar 31, 2009, 10:04:03 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/utilities/log.py
r6658 r6663 108 108 frames = traceback.extract_stack() 109 109 frames.reverse() 110 for ( mname, lnum, _, _) in frames:111 mname = os.path.basename(mname).rsplit('.', 1)[0]110 for (fpath, lnum, mname, _) in frames: 111 fname = os.path.basename(mname).rsplit('.', 1)[0] 112 112 if mname != __name__: 113 113 break 114 114 115 logging.log(level, msg, extra={'mname': mname, 'lnum': lnum})115 logging.log(level, msg, extra={'mname': fname, 'lnum': lnum}) 116 116 117 117 ################################################################################
Note: See TracChangeset
for help on using the changeset viewer.