mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-14 05:52:43 +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:
parent
01d957677f
commit
d6748284bd
2 changed files with 11 additions and 0 deletions
|
@ -1096,6 +1096,10 @@ func NewXORMLogService(disableConsole bool) {
|
|||
}
|
||||
log.XORMLogger.SetLevel(lvl)
|
||||
}
|
||||
|
||||
if len(logConfigs) == 0 {
|
||||
log.DiscardXORMLogger()
|
||||
}
|
||||
}
|
||||
|
||||
func newCacheService() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue