fix nil pointer bug

This commit is contained in:
Cody Lee 2022-10-27 16:17:37 -05:00 committed by GitHub
parent 27187efdf8
commit 1dcea47a76
1 changed files with 1 additions and 2 deletions

View File

@ -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!")
return nil
}
u.Logf("Datadog is configured.")
u.Collector = c
u.Logf("Datadog is configured.")
u.setConfigDefaults()
var err error