Skip to content

Commit

Permalink
Merge branch 'master' into fix/dev-userinfo-validation
Browse files Browse the repository at this point in the history
  • Loading branch information
byewokko committed Aug 28, 2023
2 parents 7728193 + 8a75587 commit 9567fbd
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions asab/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,8 +451,14 @@ def _on_write(self):
try:
self._socket.sendall(msg)
except Exception as e:
print("Error when writing to syslog '{}'".format(self._address), e, file=sys.stderr)
self._enqueue(msg)
# Contingency dump when the socket is not ready
print(msg.decode("utf-8"), file=sys.stderr)
print(
"Error when writing to syslog '{}': {}".format(self._address, e),
traceback.format_exc(),
sep="\n",
file=sys.stderr
)

def _on_read(self):
try:
Expand Down

0 comments on commit 9567fbd

Please sign in to comment.