add logging of migration phase at startup

This commit is contained in:
Brian Gough 2020-01-23 15:46:54 +00:00
parent d5a2b96df9
commit 626e19ed1a

View file

@ -133,7 +133,7 @@ class MigrationClient
@rclient_new = redis.createClient(@new_settings)
@new_key_schema = new_settings.key_schema
# check that migration phase is valid on startup
@getMigrationPhase()
logger.warn {migration_phase: @getMigrationPhase()}, "running with RedisMigrationManager"
getMigrationPhase: () ->
@migration_phase = @new_settings.migration_phase # FIXME: allow setting migration phase while running for testing