Skip to content

Commit

Permalink
feat: TLOG log rolling is configured using a configuration file
Browse files Browse the repository at this point in the history
  • Loading branch information
lbbniu committed Jan 7, 2024
1 parent 9319267 commit f0765f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tars/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ func (a *application) initConfig() {
}
rogger.SetLevel(rogger.StringToLevel(a.svrCfg.LogLevel))
if a.svrCfg.LogPath != "" {
_ = TLOG.SetFileRoller(a.svrCfg.LogPath+"/"+a.svrCfg.App+"/"+a.svrCfg.Server, 10, 100)
_ = TLOG.SetFileRoller(a.svrCfg.LogPath+"/"+a.svrCfg.App+"/"+a.svrCfg.Server, int(a.svrCfg.LogNum), int(a.svrCfg.LogSize))

Check failure

Code scanning / CodeQL

Incorrect conversion between integer types High

Incorrect conversion of an unsigned 64-bit integer from
strconv.ParseUint
to a lower bit size type int without an upper bound check.
}

// cache
Expand Down

0 comments on commit f0765f8

Please sign in to comment.