Skip to content
This repository was archived by the owner on Jan 30, 2026. It is now read-only.

Commit 4687c95

Browse files
committed
fix: entry connection log
1 parent bc0a9be commit 4687c95

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

mix/entry_connection.nim

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,15 @@ type MixEntryConnection* = ref object of Connection
2525
replyReceivedFut: Future[void]
2626
cached: seq[byte]
2727

28+
func shortLog*(conn: MixEntryConnection): string =
29+
if conn == nil:
30+
"MixEntryConnection(nil)"
31+
else:
32+
"MixEntryConnection(" & $conn.destination & ")"
33+
34+
chronicles.formatIt(MixEntryConnection):
35+
shortLog(it)
36+
2837
method readOnce*(
2938
s: MixEntryConnection, pbytes: pointer, nbytes: int
3039
): Future[int] {.async: (raises: [CancelledError, LPStreamError]), public.} =

0 commit comments

Comments
 (0)