summaryrefslogtreecommitdiffstats
path: root/cmd/serve.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/serve.go')
-rw-r--r--cmd/serve.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/serve.go b/cmd/serve.go
index 3d299e8875..dc952cd1d6 100644
--- a/cmd/serve.go
+++ b/cmd/serve.go
@@ -76,6 +76,9 @@ func fail(userMessage, logMessage string, args ...interface{}) {
fmt.Fprintln(os.Stderr, "Gogs:", userMessage)
if len(logMessage) > 0 {
+ if !setting.ProdMode {
+ fmt.Fprintf(os.Stderr, logMessage, args...)
+ }
log.GitLogger.Fatal(3, logMessage, args...)
return
}