Monday, 4 June 2018

Python module "trace": file path missing

I am tracing a python script like this:

python -m trace --ignore-dir=$HOME/lib64:$HOME/lib:/usr -t bin/myscript.py

Some lines look like this:

 --- modulename: __init__, funcname: getEffectiveLevel
__init__.py(1325):         logger = self
__init__.py(1326):         while logger:
__init__.py(1327):             if logger.level:
__init__.py(1329):             logger = logger.parent
__init__.py(1326):         while logger:
__init__.py(1327):             if logger.level:
__init__.py(1328):                 return logger.level

Unfortunately I have no clue where this code comes from.

Is there a way to see the file name (including the path) of getEffectiveLevel()?

Of course I could search through all installed python code for a method with this name, but I would like to see the file path immediately.

In this context Python 2.7 gets used.



from Python module "trace": file path missing

No comments:

Post a Comment