aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/serv.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/serv.go')
-rw-r--r--cmd/serv.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/serv.go b/cmd/serv.go
index 56167f63a8..1c9f5dc44e 100644
--- a/cmd/serv.go
+++ b/cmd/serv.go
@@ -81,6 +81,10 @@ func fail(userMessage, logMessage string, args ...interface{}) {
}
}
+ if len(logMessage) > 0 {
+ _ = private.SSHLog(true, fmt.Sprintf(logMessage+": ", args...))
+ }
+
os.Exit(1)
}