1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-22 12:54:53 -05:00

print error log to client side when dev mode

This commit is contained in:
Unknwon 2015-11-23 22:33:24 -05:00
parent 0128036514
commit 21ad4bf0fe

View file

@ -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
}