Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Set logger in MqttFactory to avoid panic when AuthMode is empty #926

Merged

Conversation

lenny-goodell
Copy link
Member

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

What is the current behavior?

MqttFactory will panic when attempt to log warning about authMode empty du to logger not set in the factory method.

Issue Number: #920

What is the new behavior?

Logger set set in the factory method avoiding panic and logging wanring.

Does this PR introduce a breaking change?

  • Yes
  • No

Are there any new imports or modules? If so, what are they used for and why?

no

Are there any specific instructions or things that should be known prior to reviewing?

Other information

closes edgexfoundry#920

Signed-off-by: lenny <leonard.goodell@intel.com>
@lenny-goodell lenny-goodell merged commit 1bc0c5a into edgexfoundry:main Jul 20, 2021
@lenny-goodell lenny-goodell deleted the mqtt-factory-panic-fix branch July 20, 2021 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[SDK] App service panics when MQTTSerectSend AuthMode is blank
2 participants