mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 10:18:38 +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:
@@ -1096,6 +1096,10 @@ func NewXORMLogService(disableConsole bool) {
|
||||
}
|
||||
log.XORMLogger.SetLevel(lvl)
|
||||
}
|
||||
|
||||
if len(logConfigs) == 0 {
|
||||
log.DiscardXORMLogger()
|
||||
}
|
||||
}
|
||||
|
||||
func newCacheService() {
|
||||
|
Reference in New Issue
Block a user