Commit efd9a709 authored by Andreas Brandl's avatar Andreas Brandl

Move logging to actual logic

parent 8614e246
...@@ -8,8 +8,6 @@ class PartitionCreationWorker ...@@ -8,8 +8,6 @@ class PartitionCreationWorker
idempotent! idempotent!
def perform def perform
Gitlab::AppLogger.info("Checking state of dynamic postgres partitions")
Gitlab::Database::Partitioning::PartitionCreator.new.create_partitions Gitlab::Database::Partitioning::PartitionCreator.new.create_partitions
end end
end end
...@@ -26,6 +26,8 @@ module Gitlab ...@@ -26,6 +26,8 @@ module Gitlab
def create_partitions def create_partitions
return unless Feature.enabled?(:postgres_dynamic_partition_creation, default_enabled: true) return unless Feature.enabled?(:postgres_dynamic_partition_creation, default_enabled: true)
Gitlab::AppLogger.info("Checking state of dynamic postgres partitions")
models.each do |model| models.each do |model|
# Double-checking before getting the lease: # Double-checking before getting the lease:
# The prevailing situation is no missing partitions # The prevailing situation is no missing partitions
......
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