-
Notifications
You must be signed in to change notification settings - Fork 119
DEV: Improve logging and fix some formatting errors #92
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
Conversation
@@ -1,7 +1,7 @@ | |||
# frozen_string_literal: true | |||
|
|||
# name: discourse-oauth2-basic | |||
# about: Allows users to login to your forum using a basic OAuth2 provider. |
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.
syntax tree error
@@ -50,7 +50,7 @@ def recurse(obj, keys) | |||
class OAuth2FaradayFormatter < Faraday::Logging::Formatter | |||
def request(env) | |||
warn <<~LOG | |||
OAuth2 Debugging: request #{env.method.upcase} #{env.url.to_s} |
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.
rubocop error
@@ -64,7 +64,7 @@ def response(env) | |||
warn <<~LOG | |||
OAuth2 Debugging: response status #{env.status} | |||
|
|||
From #{env.method.upcase} #{env.url.to_s} |
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.
rubocop error
c731f38
to
78e44d3
Compare
request headers: #{headers} | ||
|
||
response status: #{user_json_response.status} | ||
|
||
response body: | ||
#{user_json_response.body} |
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.
Things added to the logs
No description provided.