Skip to content

Commit

Permalink
Print the failed message
Browse files Browse the repository at this point in the history
  • Loading branch information
byewokko committed Aug 25, 2023
1 parent 914cfb2 commit 8c9c7b3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions asab/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,7 @@ def _on_write(self):
self._socket.sendall(msg)
except Exception as e:
# 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(),
Expand Down

0 comments on commit 8c9c7b3

Please sign in to comment.