summaryrefslogtreecommitdiff
path: root/sd_daemon/lsb/exit-status.go
diff options
context:
space:
mode:
Diffstat (limited to 'sd_daemon/lsb/exit-status.go')
-rw-r--r--sd_daemon/lsb/exit-status.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/sd_daemon/lsb/exit-status.go b/sd_daemon/lsb/exit-status.go
index 14e2128..fbbb5e3 100644
--- a/sd_daemon/lsb/exit-status.go
+++ b/sd_daemon/lsb/exit-status.go
@@ -1,4 +1,4 @@
-// Copyright 2015 Luke Shumaker
+// Copyright 2015-2016 Luke Shumaker
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -17,9 +17,10 @@
package lsb
import (
+ "fmt"
"os"
- "lukeshu.com/git/go/libsystemd.git/sd_daemon/logger"
+ "lukeshu.com/git/go/libsystemd.git/sd_daemon"
)
// systemd daemon(7) recommends using the exit codes defined in the
@@ -87,7 +88,7 @@ const (
// panic.
func Recover() {
if r := recover(); r != nil {
- logger.Err("panic: %v", r)
+ sd_daemon.Log.Err(fmt.Sprintf("panic: %v", r))
os.Exit(int(EXIT_FAILURE))
}
}