fix small things

This commit is contained in:
2025-11-17 15:55:51 -06:00
parent 55ef8e1733
commit f56393c84c
2 changed files with 4 additions and 4 deletions

View File

@@ -239,10 +239,10 @@ func setLoggingOptions(backyKoanf *koanf.Koanf, opts *ConfigOpts) {
isVerboseLoggingSetInConfig := backyKoanf.Bool(getLoggingKeyFromConfig("verbose"))
// if log file is set in config file and not set on command line, use "./backy.log"
logFile := "./backy.log"
if opts.LogFilePath == "" && backyKoanf.Exists(getLoggingKeyFromConfig("file")) {
logFile = backyKoanf.String(getLoggingKeyFromConfig("file"))
opts.LogFilePath = logFile
opts.LogFilePath = backyKoanf.String(getLoggingKeyFromConfig("file"))
} else {
opts.LogFilePath = "./backy.log"
}
zerolog.SetGlobalLevel(zerolog.InfoLevel)

View File

@@ -81,7 +81,7 @@ func (opts *ConfigOpts) ListCommandList(list string) {
// bool for commands not found
// gets set to false if a command is not found
// set to true if the command is found
var listFound bool = false
var listFound bool
var listInfo *CmdList
// check commands in file against cmd
for listInFile, l := range opts.CmdConfigLists {