Skip to content

Commit 45b8c0d

Browse files
committed
router: log vshard version during configuration
Users usually come to developers with logs, this logs has Tarantool's version in it, but vshard version is missing there. Let's log version, so that developers don't have to always ask users, which vshard version is used there. Part of #612 NO_DOC=internal NO_TEST=minor
1 parent fbc3ea7 commit 45b8c0d

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

vshard/router/init.lua

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1231,11 +1231,8 @@ end
12311231
local function router_cfg(router, cfg, is_reload)
12321232
cfg = lcfg.check(cfg, router.current_cfg)
12331233
local vshard_cfg = lcfg.extract_vshard(cfg)
1234-
if not M.replicasets then
1235-
log.info('Starting router configuration')
1236-
else
1237-
log.info('Starting router reconfiguration')
1238-
end
1234+
log.info('Starting router %sconfiguration at VShard %s',
1235+
M.replicasets and 're' or '', consts.VERSION)
12391236
if vshard_cfg.box_cfg_mode ~= 'manual' then
12401237
local box_cfg = lcfg.extract_box(cfg, {})
12411238
log.info("Calling box.cfg()...")

0 commit comments

Comments
 (0)