print error if logging fails

This commit is contained in:
Harvey Tindall
2021-12-20 19:05:18 +00:00
parent ebb49fce97
commit d81679fbae
2 changed files with 7 additions and 3 deletions
+4 -1
View File
@@ -667,7 +667,10 @@ func printVersion() {
}
func main() {
f := logOutput()
f, err := logOutput()
if err != nil {
fmt.Printf("Failed to start logging: %v\n", err)
}
defer f()
printVersion()
SOCK = filepath.Join(temp, SOCK)