File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 34
34
35
35
import contextlib
36
36
import os
37
+ import threading
37
38
import traceback
38
39
import warnings
39
40
import weakref
@@ -2567,7 +2568,7 @@ async def run(self) -> T:
2567
2568
self ._check_last_error (check_csot = True )
2568
2569
try :
2569
2570
if self ._operation in (_Op .LIST_COLLECTIONS , _Op .INSERT ):
2570
- print (f"Retryable read for { self ._operation } " )
2571
+ print (f"{ threading . current_thread (). name } -- Retryable read for { self ._operation } " )
2571
2572
res = await self ._read () if self ._is_read else await self ._write ()
2572
2573
if self ._operation in (_Op .LIST_COLLECTIONS , _Op .INSERT ):
2573
2574
print (f"Result for { self ._operation } : { res } " )
Original file line number Diff line number Diff line change 17
17
18
18
import datetime
19
19
import logging
20
+ import threading
20
21
import time
21
22
from typing import (
22
23
TYPE_CHECKING ,
@@ -135,7 +136,7 @@ async def command(
135
136
136
137
publish = listeners is not None and listeners .enabled_for_commands
137
138
if name == "listCollections" :
138
- print (f"Publishing is { publish } listeners: { listeners } { listeners .enabled_for_commands if listeners is not None else 'NONE' } !" )
139
+ print (f"{ threading . current_thread (). name } -- Publishing is { publish } listeners: { listeners } { listeners .enabled_for_commands if listeners is not None else 'NONE' } !" )
139
140
start = datetime .datetime .now ()
140
141
if publish :
141
142
speculative_hello = _is_speculative_authenticate (name , spec )
You can’t perform that action at this time.
0 commit comments