Skip to content

Commit

Permalink
add deprecation message if rollbar config passed
Browse files Browse the repository at this point in the history
  • Loading branch information
scottybarr committed Jul 5, 2024
1 parent f6fd433 commit ab5920b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## Unreleased

## 6.0.0 - 2024-07-04
### Changed
- Removed support for Rollbar configuration.
### BREAKING CHANGE
- Removed support for Rollbar configuration. `config.rollbar` is no longer supported.
- Added support for passing `error_reporting_func` as a config option.

## 5.3.4 - 2024-06-14
Expand Down
4 changes: 4 additions & 0 deletions lib/pheme/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ class Configuration
def initialize
@logger ||= Logger.new($stdout) # rubocop:disable Lint/DisjunctiveAssignmentInConstructor
@logger = ActiveSupport::TaggedLogging.new(@logger) unless @logger.respond_to?(:tagged)

if respond_to?(:rollbar)
ActiveSupport::Deprecation.warn("config.rollbar is deprecated. Please use config.error_reporting_func instead.")
end
end

def validate!
Expand Down

0 comments on commit ab5920b

Please sign in to comment.