revid: change Verbosity to LogLevel in config.go

This commit is contained in:
saxon 2018-09-22 14:46:54 +09:30
parent 8f56a82053
commit b210530330
1 changed files with 6 additions and 6 deletions

View File

@ -43,7 +43,7 @@ type Config struct {
RtmpMethod uint8
Packetization uint8
QuantizationMode uint8
Verbosity int8
LogLevel int8
HorizontalFlip uint8
VerticalFlip uint8
FramesPerClip int
@ -107,15 +107,15 @@ const (
// Validate checks for any errors in the config fields and defaults settings
// if particular parameters have not been defined.
func (c *Config) Validate(r *Revid) error {
switch c.Verbosity {
switch c.LogLevel {
case Yes:
case No:
case NothingDefined:
c.Verbosity = defaultVerbosity
c.Logger.Log(smartlogger.Warning, pkg+"no verbosity mode defined, defaulting",
"verbosity", defaultVerbosity)
c.LogLevel = defaultVerbosity
c.Logger.Log(smartlogger.Warning, pkg+"no LogLevel mode defined, defaulting",
"LogLevel", defaultVerbosity)
default:
return errors.New("bad Verbosity defined in config")
return errors.New("bad LogLevel defined in config")
}
switch c.QuantizationMode {