Add logging for the migration command