Handle error when initializing the auth object in Azure Monitor output plugin. (#9048)
This commit is contained in:
parent
d8b28bc609
commit
e4bbcc447d
|
|
@ -193,7 +193,7 @@ func (a *AzureMonitor) Connect() error {
|
|||
|
||||
a.auth, err = auth.NewAuthorizerFromEnvironmentWithResource(defaultAuthResource)
|
||||
if err != nil {
|
||||
return nil
|
||||
return err
|
||||
}
|
||||
|
||||
a.Reset()
|
||||
|
|
|
|||
Loading…
Reference in New Issue