Commit 7b2ca2ce authored by drew cimino's avatar drew cimino

Log orphaned commit statuses even if there are none

parent edd23d67
......@@ -152,14 +152,12 @@ module Projects
deleted_count = project.commit_statuses.delete_all
if deleted_count > 0
Gitlab::AppLogger.info(
class: 'Projects::DestroyService',
project_id: project.id,
message: 'leftover commit statuses',
orphaned_commit_status_count: deleted_count
)
end
Gitlab::AppLogger.info(
class: 'Projects::DestroyService',
project_id: project.id,
message: 'leftover commit statuses',
orphaned_commit_status_count: deleted_count
)
end
# The project can have multiple webhooks with hundreds of thousands of web_hook_logs.
......
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