log: make log.cfg{modules=...} work as box.cfg{log_modules=...}
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 NO_DOC=bug fix (cherry picked from commit c13e59a5)
Showing
- changelogs/unreleased/gh-7962-log-cfg-modules-fix.md 6 additions, 0 deletionschangelogs/unreleased/gh-7962-log-cfg-modules-fix.md
- src/box/lua/load_cfg.lua 15 additions, 19 deletionssrc/box/lua/load_cfg.lua
- src/lua/log.lua 1 addition, 2 deletionssrc/lua/log.lua
- test/box-luatest/gh_3211_per_module_log_level_test.lua 21 additions, 42 deletionstest/box-luatest/gh_3211_per_module_log_level_test.lua
Loading
Please register or sign in to comment