]> Cypherpunks repositories - gostls13.git/commit
log/syslog: report hostname mismatch error details
authorMichael Pratt <mpratt@google.com>
Wed, 12 Apr 2023 15:56:14 +0000 (11:56 -0400)
committerGopher Robot <gobot@golang.org>
Wed, 12 Apr 2023 16:09:24 +0000 (16:09 +0000)
commitebc13fb0b83341a444f55cf226f786fdc9782018
tree9ae89cd8eb2d575c33879eb751ddb1d96dde7b10
parentd91d8325308a8ad6943bd46ab3396ae8decd8348
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>
src/log/syslog/syslog_test.go