diff --git a/a.py b/a.py new file mode 100644 index 0000000..c3cdd29 --- /dev/null +++ b/a.py @@ -0,0 +1,9 @@ +import pysnooper + +@pysnooper.snoop(depth = float('inf')) +def func(x): + if x == 0: + return + func(x - 1) + +func(3) \ No newline at end of file diff --git a/pysnooper/tracer.py b/pysnooper/tracer.py index 9c075ed..64e2d4b 100644 --- a/pysnooper/tracer.py +++ b/pysnooper/tracer.py @@ -470,7 +470,7 @@ class Tracer: "thread_info") current_thread = threading.current_thread() thread_info = "{ident}-{name} ".format( - ident=current_thread.ident, name=current_thread.getName()) + ident=current_thread.ident, name=current_thread.name) thread_info = self.set_thread_info_padding(thread_info) ### Reporting newish and modified variables: ##########################