tools/migration/prosody-migrator.lua: Add messages to show when migration is in progress

This commit is contained in:
Matthew Wild 2011-04-05 14:34:06 +01:00
parent 667fc392e9
commit 747f5e7ccf

View file

@ -125,9 +125,10 @@ local writer = require("migrator."..otype).writer(config[to_store]);
local json = require "util.json";
io.stderr:write("Migrating...\n");
for x in reader do
--print(json.encode(x))
writer(x);
end
writer(nil); -- close
io.stderr:write("Done!\n");