mirror of https://bitbucket.org/ausocean/av.git
revid: change Verbosity to LogLevel in config.go
This commit is contained in:
parent
8f56a82053
commit
b210530330
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue