go/src/log/syslog
Michael Pratt ebc13fb0b8 log/syslog: report hostname mismatch error details
The existing error log in check doesn't report the got/want hostname
even though that can be the cause of the error. Log those as well.

While we're here, also report os.Hostname() errors.

For #59568.

Change-Id: Ia277f85eddc541f2e78d719bc731db24e4513754
Reviewed-on: https://go-review.googlesource.com/c/go/+/483915
Run-TryBot: Michael Pratt <mpratt@google.com>
Auto-Submit: Michael Pratt <mpratt@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
2023-04-12 16:09:24 +00:00
..
doc.go all: gofmt main repo 2022-04-11 16:34:30 +00:00
example_test.go all: go fix -fix=buildtag std cmd (except for bootstrap deps, vendor) 2021-10-28 18:17:57 +00:00
syslog.go log/syslog: return nil directly 2022-10-03 08:59:45 +00:00
syslog_test.go log/syslog: report hostname mismatch error details 2023-04-12 16:09:24 +00:00
syslog_unix.go all: go fix -fix=buildtag std cmd (except for bootstrap deps, vendor) 2021-10-28 18:17:57 +00:00