-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rollbar environment #258
Rollbar environment #258
Conversation
👍 |
@@ -1,6 +1,7 @@ | |||
Rollbar.configure do |config| | |||
config.enabled = ENV.has_key?('ROLLBAR_ACCESS_TOKEN') | |||
config.access_token = ENV["ROLLBAR_ACCESS_TOKEN"] | |||
config.environment = ENV['ROLLBAR_ENVIRONMENT'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it make sense to add ROLLBAR_ENVIRONMENT
to pliny/lib/template/.env.sample.erb
?
ROLLBAR_ENVIRONMENT=development
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I intentionally left this out, as ROLLBAR_ACCESS_TOKEN
isn't specified there. Which causes it to default to being disabled.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, it makes sense. Thanks for explanation! 👍
I wasn't sure how Rollbar gem acts when environment
is nil
, but seems like it handles everything pretty well 😄
I know it's just cosmetics, but would it make sense to use |
@soulim Excellent point. I'll get it updated. |
See discussion here: #160.
@rwz what do you think?