We read every piece of feedback, and take your input very seriously.
Include my email address so I can be contactedHave 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
| Expand Up | @@ -9,7 +9,6 @@ | |
| from feast.permissions.security_manager import get_security_manager | ||
|
|
||
| logger = logging.getLogger(__name__) | ||
| logger.setLevel(logging.INFO) | ||
|
|
||
|
|
||
| class AuthInterceptor(grpc.ServerInterceptor): | ||
| Expand All | @@ -22,11 +21,13 @@ def intercept_service(self, continuation, handler_call_details): | |
| metadata=dict(handler_call_details.invocation_metadata) | ||
| ) | ||
|
|
||
| print(f"Fetching user for token: {len(access_token)}") | ||
| logger.debug( | ||
| f"Fetching user details for token of length: {len(access_token)}" | ||
|
Comment thread
Copy link
Copy Markdown
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality Hide commentmy 2 cents - may be debug log here is more appropriate.
Sorry, something went wrong.
All reactions
Copy link
Copy Markdown
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality Hide commentset as debug
Sorry, something went wrong.
All reactions
|
||
| ) | ||
| current_user = asyncio.run( | ||
| auth_manager.token_parser.user_details_from_access_token(access_token) | ||
| ) | ||
| print(f"User is: {current_user}") | ||
| logger.debug(f"User is: {current_user}") | ||
| sm.set_current_user(current_user) | ||
|
|
||
| return continuation(handler_call_details) | ||
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.
Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality Hide commentThe better way to log exception is logging.exception I m not sure what it logs if we do the {exception}.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
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.
Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality Hide commentset as logging.exception. These will arrow flight sever related internal exceptions.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.