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

[BugFix] Fixing logging initialized before loaded #1061

Merged

Conversation

mapleFU
Copy link
Member

@mapleFU mapleFU commented Nov 1, 2022

Fixes #1059
May same as #1060

When Config::Load is called, callback is called when setting fields, so it will call LOG(INFO) << ..., which would initialize logger.

Config::Load is called before initialize loggers, so logger is initialized and not follow the Config's behavior.

And here we found that, when program is loading, srv is nullptr. So we can check it ahead of logging

git-hulk
git-hulk previously approved these changes Nov 1, 2022
PragmaTwice
PragmaTwice previously approved these changes Nov 2, 2022
@torwig torwig force-pushed the bug-fix/fixing-log-initialized-before-init branch from 166db4d to 79634dc Compare November 2, 2022 13:18
@mapleFU
Copy link
Member Author

mapleFU commented Nov 3, 2022

@git-hulk @PragmaTwice No idea why CI failed...

@git-hulk
Copy link
Member

git-hulk commented Nov 3, 2022

@git-hulk @PragmaTwice No idea why CI failed...

@mapleFU Yes, we found a frequently crash test case and it is no related to current PR even it would also block the merge. @PragmaTwice has uploaded the coredump file to artifacts in PR, still investigating the reason now.

@tisonkun tisonkun dismissed stale reviews from PragmaTwice and git-hulk via 79634dc November 3, 2022 09:29
@git-hulk
Copy link
Member

git-hulk commented Nov 4, 2022

Thanks @mapleFU, merging..

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.

When log-dir and backup-dir appear at the same time, log-dir does not take effect
3 participants