Skip to content
Snippets Groups Projects
Commit fa989042 authored by Nick Thomas's avatar Nick Thomas
Browse files

Use fmt/log.Println, not the println builtin

parent 79738be5
No related branches found
No related tags found
1 merge request!20Resolve "Gitlab daemon crashing. Omnibus installation (Ubuntu 14.04)"
Loading
Loading
@@ -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)
Loading
Loading
@@ -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
}
 
Loading
Loading
Loading
Loading
@@ -34,7 +34,7 @@ func (d *domain) serveFile(w http.ResponseWriter, r *http.Request, fullPath stri
return err
}
 
println("Serving", fullPath, "for", r.URL.Path)
fmt.Println("Serving", fullPath, "for", r.URL.Path)
http.ServeContent(w, r, filepath.Base(file.Name()), fi.ModTime(), file)
return nil
}
Loading
Loading
@@ -52,7 +52,7 @@ func (d *domain) serveCustomFile(w http.ResponseWriter, r *http.Request, code in
return err
}
 
println("Serving", fullPath, "for", r.URL.Path, "with", code)
fmt.Println("Serving", fullPath, "for", r.URL.Path, "with", code)
 
// Serve the file
_, haveType := w.Header()["Content-Type"]
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment