Message356490
As you noted /dev/log doesn't exist on macOS (the correct path is /var/run/syslog).
I guess the change that would be most in spirit of the comment is to set self.socket to None when the socket cannot be opened and test for that before closing the socket. Likewise, emit() can test if self.socket is None and then attempt to open the socket (and not write to the log when the socket still is None)
This makes errors pass silently, but does match the spirit of the POSIX API (where the syslog function does not return an error). |
|
Date |
User |
Action |
Args |
2019-11-12 21:46:50 | ronaldoussoren | set | recipients:
+ ronaldoussoren, vinay.sajip, jaraco, ned.deily |
2019-11-12 21:46:50 | ronaldoussoren | set | messageid: <1573595210.87.0.932539047785.issue38780@roundup.psfhosted.org> |
2019-11-12 21:46:50 | ronaldoussoren | link | issue38780 messages |
2019-11-12 21:46:50 | ronaldoussoren | create | |
|