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(Logging): Fix invalid direct access to logger #1980

Merged
merged 1 commit into from
Jul 17, 2023

Conversation

PapaCharlie
Copy link
Contributor

Problem

Because the logger provided in the Options can be nil, directly interacting with it can cause panics.

Solution

This change fixes this issue by using the various logging methods provided by Options that wrap the Logger field.

Because the logger provided in the Options can be nil, directly interacting with
it can cause panics. This change fixes this issue by using the various logging
methods provided by Options that wrap the Logger field.
@CLAassistant
Copy link

CLAassistant commented Jul 17, 2023

CLA assistant check
All committers have signed the CLA.

@mangalaman93 mangalaman93 merged commit da1dcac into dgraph-io:main Jul 17, 2023
@mangalaman93
Copy link
Contributor

Thank you for the PR.

@PapaCharlie
Copy link
Contributor Author

My pleasure!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants