Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Thomas <nick@gitlab.com>2017-03-08 17:27:37 +0300
committerNick Thomas <nick@gitlab.com>2017-03-08 18:02:35 +0300
commitfa9890420cf5dbbca652fceb05708b67c393ebb5 (patch)
treecb1eebd3a6056abc252b73dfa7f5259aa3a70c5b /daemon.go
parent79738be56d5349a16500d2cb80e3473e5a079053 (diff)
Use fmt/log.Println, not the println builtin
Diffstat (limited to 'daemon.go')
-rw-r--r--daemon.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/daemon.go b/daemon.go
index 8d68bb44..bbe69118 100644
--- a/daemon.go
+++ b/daemon.go
@@ -188,7 +188,7 @@ func daemonize(config appConfig, uid, gid uint) {
// Run daemon in chroot environment
temporaryExecutable, err := daemonChroot(cmd)
if err != nil {
- println("Chroot failed", err)
+ log.Println("Chroot failed", err)
return
}
defer os.Remove(temporaryExecutable)
@@ -211,7 +211,7 @@ func daemonize(config appConfig, uid, gid uint) {
// Start the process
if err = cmd.Start(); err != nil {
- println("Start failed", err)
+ log.Println("Start failed", err)
return
}