summaryrefslogtreecommitdiff
path: root/tracing.py
diff options
context:
space:
mode:
Diffstat (limited to 'tracing.py')
-rw-r--r--tracing.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tracing.py b/tracing.py
index 85f1a54..191564f 100644
--- a/tracing.py
+++ b/tracing.py
@@ -44,6 +44,7 @@ substring checking only, no globbing or regexps, sorry.
import logging
+import os
import traceback
@@ -62,6 +63,7 @@ def trace(msg):
if trace_patterns:
frames = traceback.extract_stack(limit=2)
filename, lineno, funcname, text = frames[0]
+ filename = os.path.basename(filename)
for pattern in trace_patterns:
if pattern in filename:
logging.debug('%s:%s:%s: %s' %