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