Skip to content

Commit

Permalink
fix: fix clean task logger configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Oct 8, 2021
1 parent afd6ef5 commit 9a68393
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pact_broker/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ end

PactBroker::DB::CleanTask.new do | task |
task.database_connection = create_database_configuration
task.logger = $logger
task.logger = PactBroker.configuration.logger

if env('PACT_BROKER_DATABASE_CLEAN_KEEP_VERSION_SELECTORS')
require 'json'
Expand All @@ -40,7 +40,7 @@ end

PactBroker::DB::DeleteOverwrittenDataTask.new do | task |
task.database_connection = create_database_configuration
task.logger = $logger
task.logger = PactBroker.configuration.logger

if env('PACT_BROKER_DATABASE_CLEAN_OVERWRITTEN_DATA_MAX_AGE')
task.max_age = env('PACT_BROKER_DATABASE_CLEAN_OVERWRITTEN_DATA_MAX_AGE').to_i
Expand Down

0 comments on commit 9a68393

Please sign in to comment.