-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
push to Cloud-watch logs Testing (#682)
* Cloudwatch logs * fix logs Update to remove depandacy of ENV var. * Updated logging * removed RAILS_LOG_TO_STDOUT dependancy * Update aws_ssm.rb * Update aws_ssm.rb * Updated RAILS_LOG_TO_STDOUT * Update aws_ssm.rb * Create rollbar.rb * Revert "Update aws_ssm.rb" This reverts commit d48bcaf.
- Loading branch information
Showing
3 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
require 'rollbar' | ||
|
||
private | ||
|
||
def config_rollbar | ||
Rollbar.configure do |config| | ||
|
||
config.access_token = ENV['ROLLBAR_ACCESS_TOKEN'] | ||
config.environment = ENV['ROLLBAR_ENVIRONMENT'] | ||
|
||
end | ||
Rails.logger.info('App Deployed & Rollbar Successfully Configured') | ||
Rollbar.info('App Deployed & Rollbar Successfully Configured') | ||
end | ||
|
||
config_rollbar if ENV['ROLLBAR_ACCESS_TOKEN'].present? |