diff options
author | maxmeyer <dev@fedux.org> | 2018-03-13 20:45:12 +0300 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2018-03-13 20:45:12 +0300 |
commit | 9fd411b8251f47ee93018c9816dce63f7af49093 (patch) | |
tree | 8907da46ce6395ca6ba39cd78cf4c06ac4149e1a /daemon.go | |
parent | 62157ad75971bbc687ebf7990649a035820e4644 (diff) |
Add more logging to gitlab pages daemon
Diffstat (limited to 'daemon.go')
-rw-r--r-- | daemon.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -25,7 +25,7 @@ func daemonMain() { log.WithFields(log.Fields{ "uid": syscall.Getuid(), "gid": syscall.Getgid(), - }).Print("starting the daemon as unprivileged user") + }).Info("starting the daemon as unprivileged user") // read the configuration from the pipe "ExtraFiles" var config appConfig @@ -184,7 +184,7 @@ func daemonize(config appConfig, uid, gid uint) { log.WithFields(log.Fields{ "uid": uid, "gid": gid, - }).Print("running the daemon as unprivileged user") + }).Info("running the daemon as unprivileged user") cmd, err := daemonReexec(uid, gid, daemonRunProgram) if err != nil { @@ -195,7 +195,7 @@ func daemonize(config appConfig, uid, gid uint) { // Run daemon in chroot environment temporaryExecutable, err := daemonChroot(cmd) if err != nil { - log.WithError(err).Print("chroot failed") + log.WithError(err).Error("chroot failed") return } defer os.Remove(temporaryExecutable) @@ -218,7 +218,7 @@ func daemonize(config appConfig, uid, gid uint) { // Start the process if err = cmd.Start(); err != nil { - log.WithError(err).Print("start failed") + log.WithError(err).Error("start failed") return } |