Skip to content

Commit 60ae7bb

Browse files
committed
storage: 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. Closes #612 NO_DOC=internal NO_TEST=minor
1 parent 45b8c0d commit 60ae7bb

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

vshard/storage/init.lua

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3723,11 +3723,8 @@ local function storage_cfg_xc(cfgctx)
37233723
local instance_id = cfgctx.instance_id
37243724
local replicaset_id = cfgctx.replicaset_id
37253725
local new_cfg = cfgctx.new_cfg
3726-
if M.replicasets then
3727-
log.info("Starting reconfiguration of replica %s", instance_id)
3728-
else
3729-
log.info("Starting configuration of replica %s", instance_id)
3730-
end
3726+
log.info('Starting %sconfiguration of replica %s at VShard %s',
3727+
M.replicasets and 're' or '', instance_id, consts.VERSION)
37313728
if cfgctx.new_cfg.box_cfg_mode == 'manual' then
37323729
if type(box.cfg) == 'function' then
37333730
local msg = "Box must be configured, when box_cfg_mode is 'manual'"

0 commit comments

Comments
 (0)