Skip to content

Commit

Permalink
convert LogRecord object to string
Browse files Browse the repository at this point in the history
  • Loading branch information
byewokko committed Aug 15, 2023
1 parent 5dc03d1 commit 221e9ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions asab/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,8 +448,8 @@ def _on_write(self):

while not self._queue.empty():
# TODO: Handle eventual error in writing -> break the cycle and restart on write handler
msg = self._queue.get_nowait()
msg = msg.encode("utf-8")
log_record = self._queue.get_nowait()
msg = log_record.getMessage().encode("utf-8")
self._socket.sendall(msg)


Expand Down

0 comments on commit 221e9ef

Please sign in to comment.