mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-21 17:24:10 +00:00
Fixed #209
This commit is contained in:
parent
87854c95a9
commit
688ec6ecbd
37 changed files with 693 additions and 482 deletions
|
@ -6,6 +6,8 @@
|
|||
package log
|
||||
|
||||
import (
|
||||
"os"
|
||||
|
||||
"github.com/gogits/logs"
|
||||
)
|
||||
|
||||
|
@ -69,3 +71,11 @@ func Critical(format string, v ...interface{}) {
|
|||
logger.Critical(format, v...)
|
||||
}
|
||||
}
|
||||
|
||||
func Fatal(format string, v ...interface{}) {
|
||||
Error(format, v...)
|
||||
for _, l := range loggers {
|
||||
l.Close()
|
||||
}
|
||||
os.Exit(2)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue