mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
fix panic when push but the only log mode console is disabled by serv and update commands (#1007)
This commit is contained in:
@@ -22,6 +22,13 @@ var (
|
||||
XORMLogger *XORMLogBridge
|
||||
)
|
||||
|
||||
// DiscardXORMLogger inits a blank logger for xorm
|
||||
func DiscardXORMLogger() {
|
||||
XORMLogger = &XORMLogBridge{
|
||||
showSQL: false,
|
||||
}
|
||||
}
|
||||
|
||||
// NewXORMLogger generate logger for xorm FIXME: configable
|
||||
func NewXORMLogger(bufferlen int64, mode, config string) {
|
||||
logger := newLogger(bufferlen)
|
||||
|
Reference in New Issue
Block a user