summaryrefslogtreecommitdiffstats
path: root/cmd/serve.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-11-23 22:33:24 -0500
committerUnknwon <u@gogs.io>2015-11-23 22:33:24 -0500
commit21ad4bf0fe461b7bf04384dcc09e62f7e52c9803 (patch)
tree3db85ebcb1b06c03c6beed29202165f3bc19938d /cmd/serve.go
parent0128036514ed40b2c878053e633762a8cffed74d (diff)
downloadgitea-21ad4bf0fe461b7bf04384dcc09e62f7e52c9803.tar.gz
gitea-21ad4bf0fe461b7bf04384dcc09e62f7e52c9803.zip
print error log to client side when dev 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
}