Skip to content

Commit

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

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


Expand Down Expand Up @@ -480,7 +479,7 @@ def emit(self, record):
self._enqueue(msg)

else:
self._enqueue(record)
self._enqueue(msg)


except Exception as e:
Expand Down

0 comments on commit f81e7df

Please sign in to comment.