diff options
author | Unknwon <u@gogs.io> | 2015-11-23 22:33:24 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-11-23 22:33:24 -0500 |
commit | 21ad4bf0fe461b7bf04384dcc09e62f7e52c9803 (patch) | |
tree | 3db85ebcb1b06c03c6beed29202165f3bc19938d /cmd/serve.go | |
parent | 0128036514ed40b2c878053e633762a8cffed74d (diff) | |
download | gitea-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.go | 3 |
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 } |