Ignore:
Timestamp:
Mar 31, 2009, 10:04:03 AM (16 years ago)
Author:
rwilson
Message:

Fixed bug in module name checking.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/utilities/log.py

    r6658 r6663  
    108108    frames = traceback.extract_stack()
    109109    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]
    112112        if mname != __name__:
    113113            break
    114114
    115     logging.log(level, msg, extra={'mname': mname, 'lnum': lnum})
     115    logging.log(level, msg, extra={'mname': fname, 'lnum': lnum})
    116116
    117117################################################################################
Note: See TracChangeset for help on using the changeset viewer.