Backported change from trunk: Made SysLogHandler more resilient in the face of syslogd failures.
Backported change from trunk:
Made SysLogHandler more resilient in the face of syslogd failures.

sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator