Commit 08cec96c authored by Vladimir Shushlin's avatar Vladimir Shushlin

Add individual migration message to pages zip migration log

(I lost it in one of the previous iterations)
parent b8e3b435
......@@ -75,15 +75,15 @@ module Pages
end
if result[:status] == :success
@logger.info(message: "Pages legacy storage migration: project migrated", project_id: project.id, pages_path: project.pages_path, duration: time.round(2))
@logger.info(message: "Pages legacy storage migration: project migrated: #{result[:message]}", project_id: project.id, pages_path: project.pages_path, duration: time.round(2))
@counters_lock.synchronize { @migrated += 1 }
else
@logger.error(message: "Pages legacy storage migration: project failed to be migrated", project_id: project.id, pages_path: project.pages_path, duration: time.round(2))
@logger.error(message: "Pages legacy storage migration: project failed to be migrated: #{result[:message]}", project_id: project.id, pages_path: project.pages_path, duration: time.round(2))
@counters_lock.synchronize { @errored += 1 }
end
rescue => e
@counters_lock.synchronize { @errored += 1 }
@logger.error(message: "Pages legacy storage migration: project failed to be migrated", project_id: project&.id, pages_path: project&.pages_path)
@logger.error(message: "Pages legacy storage migration: project failed to be migrated: #{result[:message]}", project_id: project&.id, pages_path: project&.pages_path)
Gitlab::ErrorTracking.track_exception(e, project_id: project&.id)
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment