some logs
This commit is contained in:
parent
773ba77357
commit
05aad3a91c
@ -55,9 +55,11 @@ module Connectors
|
|||||||
info = collection.index_information
|
info = collection.index_information
|
||||||
unless info["created_at_1"]
|
unless info["created_at_1"]
|
||||||
collection.create_index({created_at: Mongo::ASCENDING})
|
collection.create_index({created_at: Mongo::ASCENDING})
|
||||||
|
DevopsLogger.logger.info("Index 'created_at_1' for reports collection has been created")
|
||||||
end
|
end
|
||||||
unless info["project_1_deploy_env_1_created_at_1"]
|
unless info["project_1_deploy_env_1_created_at_1"]
|
||||||
collection.create_index({project: Mongo::ASCENDING, deploy_env: Mongo::ASCENDING, created_at: Mongo::ASCENDING})
|
collection.create_index({project: Mongo::ASCENDING, deploy_env: Mongo::ASCENDING, created_at: Mongo::ASCENDING})
|
||||||
|
DevopsLogger.logger.info("Index 'project_1_deploy_env_1_created_at_1' for reports collection has been created")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -67,5 +69,4 @@ module Connectors
|
|||||||
Devops::Model::Report.new(bson)
|
Devops::Model::Report.new(bson)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user