# HG changeset patch # User Kim Alvefur # Date 1453229565 -3600 # Node ID 530bf8ef2e55156ec4b1e417b541c0f34c42be37 # Parent d4227837cf066aa58a9bb31ff1a4f1d4bd6cbf98 mod_migrate: Include debug data of what store is being migrated diff -r d4227837cf06 -r 530bf8ef2e55 mod_migrate/mod_migrate.lua --- a/mod_migrate/mod_migrate.lua Tue Jan 19 19:51:50 2016 +0100 +++ b/mod_migrate/mod_migrate.lua Tue Jan 19 19:52:45 2016 +0100 @@ -22,7 +22,7 @@ target = assert(target:open(source_store, store_type)); local function migrate_user(username) - module:log("info", "Migrating data for %s", username); + module:log("info", "Migrating %s data for %s", source_store, username); local data, err = storage:get(username); assert(data or err==nil, err); assert(target:set(username, data)); @@ -30,7 +30,7 @@ if store_type == "archive" then function migrate_user(username) - module:log("info", "Migrating archive items for %s", username); + module:log("info", "Migrating %s archive items for %s", source_store, username); local count, errs = 0, 0; for id, item, when, with in storage:find(username) do local ok, err = target:append(username, id, item, when, with);