diff options
author | silverwind <me@silverwind.io> | 2022-05-10 23:55:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-10 23:55:54 +0200 |
commit | 318f360252777c6eb819ab206a1f276fa4969f3a (patch) | |
tree | 7a73ede2df5b52be940dd9b4005137c1d5d53c04 /modules/setting | |
parent | 3c658dff233e791856496761325f5ebf787d7521 (diff) | |
download | gitea-318f360252777c6eb819ab206a1f276fa4969f3a.tar.gz gitea-318f360252777c6eb819ab206a1f276fa4969f3a.zip |
Update go tool dependencies (#19676)
* Update go tool dependencies
Updated all tool dependencies to latest tags, hoping CI will like it.
* fix new lint errors
* handle more strings.Title cases
* remove lint skip
Diffstat (limited to 'modules/setting')
-rw-r--r-- | modules/setting/log.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/setting/log.go b/modules/setting/log.go index 008a419b09..d69b5c6888 100644 --- a/modules/setting/log.go +++ b/modules/setting/log.go @@ -15,6 +15,7 @@ import ( "code.gitea.io/gitea/modules/json" "code.gitea.io/gitea/modules/log" + "code.gitea.io/gitea/modules/util" ini "gopkg.in/ini.v1" ) @@ -245,7 +246,7 @@ func generateNamedLogger(key string, options defaultLogOptions) *LogDescription Provider: provider, Config: config, }) - log.Info("%s Log: %s(%s:%s)", strings.Title(key), strings.Title(name), provider, levelName) + log.Info("%s Log: %s(%s:%s)", util.ToTitleCase(key), util.ToTitleCase(name), provider, levelName) } AddLogDescription(key, &description) @@ -331,7 +332,7 @@ func newLogService() { Provider: provider, Config: config, }) - log.Info("Gitea Log Mode: %s(%s:%s)", strings.Title(name), strings.Title(provider), levelName) + log.Info("Gitea Log Mode: %s(%s:%s)", util.ToTitleCase(name), util.ToTitleCase(provider), levelName) } AddLogDescription(log.DEFAULT, &description) |