Skip to content

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

Merged
merged 1 commit into from
Jan 9, 2024

Conversation

tgxworld
Copy link
Contributor

@tgxworld tgxworld commented Jan 9, 2024

No description provided.

@@ -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.
Copy link
Contributor Author

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}
Copy link
Contributor Author

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}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rubocop error

@tgxworld tgxworld force-pushed the fix_stree_formatting branch from c731f38 to 78e44d3 Compare January 9, 2024 03:17
Comment on lines +239 to +244
request headers: #{headers}

response status: #{user_json_response.status}

response body:
#{user_json_response.body}
Copy link
Contributor Author

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

@tgxworld tgxworld merged commit 576ccb6 into main Jan 9, 2024
@tgxworld tgxworld deleted the fix_stree_formatting branch January 9, 2024 03:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants