log: take into account env vars on log.cfg call
If env vars like TT_LOG, TT_LOG_LEVEL etc that specify log options are set then log.cfg() should take them into account if called before box.cfg(). Closes #6011 Closes #7461 @TarantoolBot document Title: log: take into account env vars on log.cfg call Since: 2.11 If env vars like TT_LOG, TT_LOG_LEVEL etc that specify log options are set then log.cfg() take them into account if called before box.cfg().
Showing
- changelogs/unreleased/gh-6011-follow-env-vars-on-log-cfg.md 4 additions, 0 deletionschangelogs/unreleased/gh-6011-follow-env-vars-on-log-cfg.md
- src/box/lua/load_cfg.lua 23 additions, 8 deletionssrc/box/lua/load_cfg.lua
- src/lua/log.lua 22 additions, 12 deletionssrc/lua/log.lua
- test/box-luatest/gh_6011_follow_env_vars_on_log_cfg_test.lua 88 additions, 0 deletionstest/box-luatest/gh_6011_follow_env_vars_on_log_cfg_test.lua
Loading
Please register or sign in to comment