diff --git a/CHANGELOG.md b/CHANGELOG.md index 7f65d82..c2c460f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Standard Reports UI: change log +## 2.0.1 - 2024-12 + +- (Bogdan) Fixed a bug that was causing an internal application error in `ReportManagerApi` + ## 2.0.0 - 2024-12 - (Bogdan) Updated all gems by regenerating `Gemfile.lock` diff --git a/app/lib/version.rb b/app/lib/version.rb index da348ad..4d205e6 100644 --- a/app/lib/version.rb +++ b/app/lib/version.rb @@ -3,7 +3,7 @@ module Version MAJOR = 2 MINOR = 0 - PATCH = 0 + PATCH = 1 SUFFIX = nil VERSION = "#{MAJOR}.#{MINOR}.#{PATCH}#{SUFFIX && ".#{SUFFIX}"}" end diff --git a/app/services/report_manager_api.rb b/app/services/report_manager_api.rb index c730a56..5cdacd7 100644 --- a/app/services/report_manager_api.rb +++ b/app/services/report_manager_api.rb @@ -178,7 +178,7 @@ def log_api_response(response, start_time, url: nil, status: nil, message: '') case response_status when 500..599 - log_fields[:message] = env['action_dispatch.exception'] + log_fields[:message] = response.env['action_dispatch.exception'] Rails.logger.error(JSON.generate(log_fields)) when 400..499 Rails.logger.warn(JSON.generate(log_fields))