diff --git a/revid/revid.go b/revid/revid.go index 6f697bd0..0f357ebd 100644 --- a/revid/revid.go +++ b/revid/revid.go @@ -119,6 +119,11 @@ type Revid struct { // an error if construction of the new instance was not successful. func New(c Config, ns *netsender.Sender) (*Revid, error) { r := Revid{ns: ns, err: make(chan error)} + err := r.setConfig(c) + if err != nil { + return nil, fmt.Errorf("could not set config, failed with error: %v",err) + } + r.config.Logger.SetLevel(c.LogLevel) go r.handleErrors() return &r, nil }