summaryrefslogtreecommitdiffstats
path: root/cmd/admin_auth_ldap_test.go
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2023-06-28 17:35:20 +0800
committerGitHub <noreply@github.com>2023-06-28 17:35:20 +0800
commit0eb4ab4246f343f9a864023801af1ef028196f66 (patch)
treeea7345ebc41dc33c65fa77a9e82d5ede50d406e8 /cmd/admin_auth_ldap_test.go
parent102dcfa3a0a91b1d9cc868c78967784dd44e385b (diff)
downloadgitea-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