Changeset 2943
- Timestamp:
- 03/20/2007 02:33:06 PM (2 years ago)
- Files:
-
- trunk/dabo/dBug.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/dabo/dBug.py
r1406 r2943 3 3 4 4 def logPoint(msg="", levels=None): 5 if levels is None: 6 # Default to 6, which works in most cases 7 levels = 6 5 8 stack = inspect.stack() 6 9 # get rid of logPoint's part of the stack: … … 11 14 output.write(str(msg) + "\n") 12 15 13 if levels is None: 14 stackSection = stack 15 else: 16 stackSection = stack[-1*levels:] 16 stackSection = stack[-1*levels:] 17 17 for stackLine in stackSection: 18 18 frame, filename, line, funcname, lines, unknown = stackLine
