Skip to content
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

Improve Logging::Railtie activation warning messages #1151

Conversation

hxiong388
Copy link
Contributor

Improve the Google::Cloud::Logging::Railtie activation warning messages. So they don't get confused as error message. See #1095 for example.

Also, the new Google::Cloud::Trace::Railtie warning messages changed the wording a little bit. So I'm also updating the warning message in Logging::Railtie to match that, so they are consistent.

[close #1095 ]

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Dec 16, 2016
@hxiong388 hxiong388 added the api: logging Issues related to the Cloud Logging API. label Dec 16, 2016
@@ -104,15 +104,15 @@ def self.use_logging? config
Google::Cloud::Logging::Credentials.credentials_with_scope keyfile
rescue Exception => e
warn "Unable to initialize Google::Cloud::Logging due " \
"to authorization error: #{e.message}"
"to authorization error: #{e.message}\nFallback to default logger"

This comment was marked as spam.

warn "Unable to initialize Google::Cloud::Logging with empty " \
"project_id"
warn "Google::Cloud::Logging is not activated due to empty " \
"project_id; fallback to default logger"

This comment was marked as spam.

@hxiong388
Copy link
Contributor Author

@dazuma updated.

@@ -104,15 +104,15 @@ def self.use_logging? config
Google::Cloud::Logging::Credentials.credentials_with_scope keyfile
rescue Exception => e
warn "Unable to initialize Google::Cloud::Logging due " \
"to authorization error: #{e.message}"
"to authorization error: #{e.message}\nFalling back to default logger"

This comment was marked as spam.

@hxiong388 hxiong388 force-pushed the improve-logger-warning branch from 557fa33 to b6d6184 Compare December 19, 2016 18:41
@hxiong388 hxiong388 merged commit 34d31a8 into googleapis:stackdriver-core-dependencies Dec 19, 2016
@hxiong388 hxiong388 deleted the improve-logger-warning branch January 24, 2017 22:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: logging Issues related to the Cloud Logging API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants