1
0
Fork 0
forked from forgejo/forgejo

Do not use deprecated log config options by default (#26592) (#26600)

Backport #26592 by @wxiaoguang

Simplify the log config

* Remove unnecessary `ROUTER` config, it defaults to the `MODE`.
* `XORM` config was deprecated

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
(cherry picked from commit b643b2ca9c)
This commit is contained in:
Giteabot 2023-08-20 16:11:57 +08:00 committed by Earl Warren
parent 28acd6e262
commit 98820fe4f2
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
6 changed files with 5 additions and 11 deletions

View file

@ -84,9 +84,8 @@ PROVIDER_CONFIG = tests/{{TEST_TYPE}}/gitea-{{TEST_TYPE}}-mysql/data/sessions
[log]
MODE = {{TEST_LOGGER}}
ROOT_PATH = {{REPO_TEST_DIR}}mysql-log
ROUTER = ,
XORM = file
ENABLE_SSH_LOG = true
logger.xorm.MODE = file
[log.test]
LEVEL = Info