config reporter #7

Merged
lash merged 3 commits from konstantinmds/visedriver:feature/6-config-reporter-new into master 2025-02-28 00:09:49 +01:00
Showing only changes of commit ec9032a42e - Show all commits

View File

@ -82,15 +82,15 @@ func (c *Config) Report(level string) {
switch level {
case "DEBUG":
c.logger.Debugf("%s: %s", cv.Key, value)
c.logger.Debugf("config set", cv.Key, value)
Outdated
Review

Debugf is not printf, you probably want something like c.logger.Debugf("config set", cv.Key, value)

Debugf is not printf, you probably want something like `c.logger.Debugf("config set", cv.Key, value)`
case "INFO":
c.logger.Infof("%s: %s", cv.Key, value)
c.logger.Infof("config set", cv.Key, value)
case "WARN":
c.logger.Warnf("%s: %s", cv.Key, value)
c.logger.Warnf("config set", cv.Key, value)
case "ERROR":
c.logger.Errorf("%s: %s", cv.Key, value)
c.logger.Errorf("config set", cv.Key, value)
default:
c.logger.Infof("%s: %s", cv.Key, value)
c.logger.Infof("config set", cv.Key, value)
}
}
}