summaryrefslogtreecommitdiff
path: root/linuxstatus/hostname.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-06 11:12:10 -0600
committerJeff Carr <[email protected]>2024-01-06 11:12:10 -0600
commitf6f5bdba4e982595ad1c12041d39f75e11792ef8 (patch)
tree89c5c4856fcec28bb28fe0be4a4706559b6a3979 /linuxstatus/hostname.go
parentc59247824f22cf62b1625f5eeea11b809374d7a0 (diff)
stepping through init on a window with state
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'linuxstatus/hostname.go')
-rw-r--r--linuxstatus/hostname.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/linuxstatus/hostname.go b/linuxstatus/hostname.go
index 76854f5..50a5b27 100644
--- a/linuxstatus/hostname.go
+++ b/linuxstatus/hostname.go
@@ -3,6 +3,8 @@
package linuxstatus
import (
+ "errors"
+
"go.wit.com/log"
"go.wit.com/shell"
@@ -28,7 +30,7 @@ func getHostname() {
log.Error(err, "FQDN hostname error")
return
}
- log.Warn("full hostname should be:", s)
+ log.Error(errors.New("full hostname should be: " + s))
dn := run("domainname")
if (me.domainname.Get() != dn) {