diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2023-06-28 17:35:20 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-28 17:35:20 +0800 |
commit | 0eb4ab4246f343f9a864023801af1ef028196f66 (patch) | |
tree | ea7345ebc41dc33c65fa77a9e82d5ede50d406e8 /cmd/admin_auth_ldap_test.go | |
parent | 102dcfa3a0a91b1d9cc868c78967784dd44e385b (diff) | |
download | gitea-0eb4ab4246f343f9a864023801af1ef028196f66.tar.gz gitea-0eb4ab4246f343f9a864023801af1ef028196f66.zip |
Fix sub-command log level (#25537) (#25553)
Backport #25537
More fix for #24981
* #24981
Close #22361, #25552
* #22361
* #25552
There were many patches for Gitea's sub-commands to satisfy the facts:
* Some sub-commands shouldn't output any log, otherwise the git protocol
would be broken
* Sometimes the users want to see "verbose" or "quiet" outputs
That's a longstanding problem, and very fragile. This PR is only a quick
patch for the problem.
In the future, the sub-command system should be refactored to a clear
solution.
----
Other changes:
* Use `ReplaceAllWriters` to replace
`RemoveAllWriters().AddWriters(writer)`, then it's an atomic operation.
* Remove unnecessary `syncLevelInternal` calls, because
`AddWriters/addWritersInternal` already calls it.
Diffstat (limited to 'cmd/admin_auth_ldap_test.go')
0 files changed, 0 insertions, 0 deletions