Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 84a567e

Browse files
committed
Use exception() instead of error() when logging
1 parent acb9cd5 commit 84a567e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rebirthdb/_import.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1242,8 +1242,8 @@ def drainQueues():
12421242
for reader in readers[:]:
12431243
try:
12441244
reader.join(.1)
1245-
except Exception as ex:
1246-
default_logger.error(ex.message)
1245+
except Exception as e:
1246+
default_logger.exception(e)
12471247
if not reader.is_alive():
12481248
readers.remove(reader)
12491249

0 commit comments

Comments
 (0)