fix nil pointer bug
This commit is contained in:
parent
27187efdf8
commit
1dcea47a76
|
|
@ -198,9 +198,8 @@ func (u *DatadogUnifi) Run(c poller.Collect) error {
|
||||||
u.LogErrorf("DataDog config is missing and is not disabled: Datadog output is disabled!")
|
u.LogErrorf("DataDog config is missing and is not disabled: Datadog output is disabled!")
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
u.Logf("Datadog is configured.")
|
|
||||||
|
|
||||||
u.Collector = c
|
u.Collector = c
|
||||||
|
u.Logf("Datadog is configured.")
|
||||||
u.setConfigDefaults()
|
u.setConfigDefaults()
|
||||||
|
|
||||||
var err error
|
var err error
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue