Log usernames for failed migration to separate file
This way they can be easily retried later on.
This commit is contained in:
parent
33731f793a
commit
41074e35b3
@ -47,7 +47,8 @@ class Migrator
|
||||
rescue Exception => ex
|
||||
logger.error "Error migrating metadata for '#{username}': #{ex}"
|
||||
set_directory_backend("legacy")
|
||||
# TODO write username to file for later reference
|
||||
# write username to file for later reference
|
||||
File.open('log/failed_migration.log', 'a') { |f| f.puts username }
|
||||
exit 1
|
||||
end
|
||||
set_directory_backend("new")
|
||||
|
Loading…
x
Reference in New Issue
Block a user