Class: Gitlab::ProjectStatsRefreshConflictsLogger
- Inherits:
-
Object
- Object
- Gitlab::ProjectStatsRefreshConflictsLogger
- Defined in:
- lib/gitlab/project_stats_refresh_conflicts_logger.rb
Overview
rubocop:disable Gitlab/NamespacedClass
Class Method Summary collapse
- .warn_artifact_deletion_during_stats_refresh(project_id:, method:) ⇒ Object
- .warn_request_rejected_during_stats_refresh(project_id) ⇒ Object
- .warn_skipped_artifact_deletion_during_stats_refresh(project_ids:, method:) ⇒ Object
Class Method Details
.warn_artifact_deletion_during_stats_refresh(project_id:, method:) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/gitlab/project_stats_refresh_conflicts_logger.rb', line 5 def self.warn_artifact_deletion_during_stats_refresh(project_id:, method:) payload = Gitlab::ApplicationContext.current.merge( message: 'Deleted artifacts undergoing refresh', method: method, project_id: project_id ) Gitlab::AppLogger.warn(payload) end |
.warn_request_rejected_during_stats_refresh(project_id) ⇒ Object
15 16 17 18 19 20 21 22 |
# File 'lib/gitlab/project_stats_refresh_conflicts_logger.rb', line 15 def self.warn_request_rejected_during_stats_refresh(project_id) payload = Gitlab::ApplicationContext.current.merge( message: 'Rejected request due to project undergoing stats refresh', project_id: project_id ) Gitlab::AppLogger.warn(payload) end |
.warn_skipped_artifact_deletion_during_stats_refresh(project_ids:, method:) ⇒ Object
24 25 26 27 28 29 30 31 32 |
# File 'lib/gitlab/project_stats_refresh_conflicts_logger.rb', line 24 def self.warn_skipped_artifact_deletion_during_stats_refresh(project_ids:, method:) payload = Gitlab::ApplicationContext.current.merge( message: 'Skipped deleting artifacts undergoing refresh', method: method, project_ids: project_ids ) Gitlab::AppLogger.warn(payload) end |