Skip to content

Instantly share code, notes, and snippets.

@harlowja
Created February 5, 2016 19:48
Show Gist options
  • Save harlowja/09ea124f33e9d6b39585 to your computer and use it in GitHub Desktop.
Save harlowja/09ea124f33e9d6b39585 to your computer and use it in GitHub Desktop.
diff --git a/osprofiler/profiler.py b/osprofiler/profiler.py
index f7a880e..d3c973b 100644
--- a/osprofiler/profiler.py
+++ b/osprofiler/profiler.py
@@ -112,7 +112,7 @@ def trace(name, info=None, hide_args=False):
if not hide_args:
info["function"]["args"] = str(args)
info["function"]["kwargs"] = str(kwargs)
-
+ print 'doing a trace for %s' % name
with Trace(name, info=info):
return f(*args, **kwargs)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment