Skip to content

Commit 81b6de5

Browse files
MarcoFalkeluke-jr
authored andcommitted
test: Avoid logging error when logging error
Github-Pull: bitcoin#31408 Rebased-From: cccca8a (minimised)
1 parent 55bd5d8 commit 81b6de5

File tree

1 file changed

+1
-1
lines changed
  • test/functional/test_framework

1 file changed

+1
-1
lines changed

test/functional/test_framework/p2p.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ def _on_data(self):
361361
self.on_message(t)
362362
except Exception as e:
363363
if not self.reconnect:
364-
logger.exception('Error reading message:', repr(e))
364+
logger.exception(f"Error reading message: {repr(e)}")
365365
raise
366366

367367
def on_message(self, message):

0 commit comments

Comments
 (0)