import threading
def worker():
"""thread worker function"""
print threading.currentThread().ident
return
i=0
while i<5:
t.start()
i=i+1
output:
1972960112
1989745520
1998134128
1939389296
1981356912
However, the pyramid logs give a seperate set of tid.. Someting like...
1807137648
1763703664
1780480880
1832303472
1797258096
Can anyone help me generate the same tid as the pyramid server greps. Any clue or direction is welcome.
If I start a new project using the pyramid-cookiecutter-starter template and modify the logging such that I output the thread ident then everything matches as expected.
I'd need you to provide a reproducible example, as I have here, to understand what you're actually asking.