mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-10 23:48:30 +02:00
print error log to client side when dev mode
This commit is contained in:
1 parent
0128036514
commit
21ad4bf0fe
1 file changed
+3
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user