Skip to content

Commit

Permalink
Remove logger calls from to_prepare (#15)
Browse files Browse the repository at this point in the history
We do not test `to_prepare` in our test flow, as it turns out - and we
were still assigning the value
  • Loading branch information
julik authored Jul 3, 2024
1 parent 29c3d35 commit 4a760a5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,8 @@

## [0.1.10] - 2024-07-03

- Fix: remove logger overrides that Gouda should install, as this causes problems for Rails apps hosting Gouda
- Fix: remove logger overrides that Gouda should install, as this causes problems for Rails apps hosting Gouda

## [0.1.11] - 2024-07-03

- Fix: make sure the Gouda logger config does not get used during Rails initialization
4 changes: 0 additions & 4 deletions lib/gouda/railtie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,10 @@ class Railtie < Rails::Railtie
Gouda.config.preserve_job_records = config_from_rails[:preserve_job_records]
Gouda.config.polling_sleep_interval_seconds = config_from_rails[:polling_sleep_interval_seconds]
Gouda.config.worker_thread_count = config_from_rails[:worker_thread_count]
if Gouda.config.logger
Gouda.config.logger.level = config_from_rails[:log_level] || Gouda.config.log_level
end
end
else
Gouda.config.preserve_job_records = false
Gouda.config.polling_sleep_interval_seconds = 0.2
Gouda.config.logger.level = Gouda.config.log_level
end

Gouda::Scheduler.build_scheduler_entries_list!
Expand Down
2 changes: 1 addition & 1 deletion lib/gouda/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Gouda
VERSION = "0.1.10"
VERSION = "0.1.11"
end

0 comments on commit 4a760a5

Please sign in to comment.