summaryrefslogtreecommitdiff
path: root/linuxstatus/hostname.go
diff options
context:
space:
mode:
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) {