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

log: make log.cfg{modules=...} work as box.cfg{log_modules=...} #9290

Merged
merged 1 commit into from
Oct 24, 2023

Conversation

locker
Copy link
Member

@locker locker commented Oct 23, 2023

Configuring log modules work differently with log.cfg and box.cfg: box.cfg{log_modules=...} overwrites the current config completely while log.cfg{modules=...} overwrites the currently config only for the specified modules. Let's fix this inconsistency by making log.cfg behave exactly as box.cfg.

Closes #7962

@locker locker requested review from a team as code owners October 23, 2023 11:45
@locker locker requested a review from nshy October 23, 2023 11:57
@coveralls
Copy link

coveralls commented Oct 23, 2023

Coverage Status

coverage: 86.276% (-0.02%) from 86.299% when pulling 8c2e5e1 on locker:gh-7962-log-cfg-modules-fix into b1779cc
on tarantool:master
.

Configuring log modules work differently with log.cfg and box.cfg:
box.cfg{log_modules=...} overwrites the current config completely while
log.cfg{modules=...} overwrites the currently config only for the
specified modules. Let's fix this inconsistency by making log.cfg behave
exactly as box.cfg.

Closes tarantool#7962

NO_DOC=bug fix
@locker locker force-pushed the gh-7962-log-cfg-modules-fix branch from d2f1caf to 8c2e5e1 Compare October 23, 2023 14:01
@nshy nshy assigned locker and unassigned nshy Oct 23, 2023
@locker locker added the full-ci Enables all tests for a pull request label Oct 24, 2023
@locker locker merged commit c13e59a into tarantool:master Oct 24, 2023
106 checks passed
@locker locker deleted the gh-7962-log-cfg-modules-fix branch October 24, 2023 10:15
@locker
Copy link
Member Author

locker commented Oct 24, 2023

Cherry-picked to 2.11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
full-ci Enables all tests for a pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

log.cfg{modules = ...} isn't equivalent to box.cfg{log_modules = ...}
5 participants