update Go Deps, change log size to 50 MBs, clarify messages

This commit is contained in:
2023-07-29 21:20:53 -05:00
parent 42bc11bf1a
commit 78428a49fc
4 changed files with 147 additions and 120 deletions

View File

@ -201,7 +201,7 @@ func ReadConfig(opts *ConfigOpts) *ConfigFile {
for _, cmdInList := range cmdList.Order {
_, cmdNameFound := backyConfigFile.Cmds[cmdInList]
if !cmdNameFound {
cmdNotFoundStr := fmt.Sprintf("command %s in list %s is not defined in config file", cmdInList, cmdListName)
cmdNotFoundStr := fmt.Sprintf("command %s in list %s is not defined in commands section in config file", cmdInList, cmdListName)
cmdNotFoundErr := errors.New(cmdNotFoundStr)
cmdNotFoundSliceErr = append(cmdNotFoundSliceErr, cmdNotFoundErr)
}

View File

@ -49,7 +49,7 @@ func SetLoggingWriters(logFile string) (writers zerolog.LevelWriter) {
}
fileLogger := &lumberjack.Logger{
MaxSize: 500, // megabytes
MaxSize: 50, // megabytes
MaxBackups: 3,
MaxAge: 28, //days
Compress: true, // disabled by default