-
Notifications
You must be signed in to change notification settings - Fork 212
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
fix(fxa-admin-panel) temporarily add logging to debug on staging #12749
Conversation
7b88171
to
a9f86cd
Compare
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.
Looks good! If you can just adjust the logs in client-config/index.ts a tiny bit I think it's good to go!
@@ -126,6 +127,7 @@ export const AccountSearch = () => { | |||
|
|||
const handleSubmit = (event: React.FormEvent) => { | |||
event.preventDefault(); | |||
const trimmedSearchValue = searchInput.trim(); |
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.
Is this from a previous PR or bad merge? Seems trimmedSearchValue is unused?
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.
Yeah it was -- removed now!
} | ||
|
||
logger.info('userGroupHeader', { 'userGroupHeader.null': userGroupHeader }); | ||
logger.info('headers', { headers }); |
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.
This is kinda weird, but these end up as cols in the logs db. Can we just do something like msg: JSON.stringify(headers)? Since this is just a temporary log probably better to just log out a message.
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.
Let's just keep these all these as logger.info('userGroupHeader', {...}) It'll make searching for the logs simpler.
|
||
@Injectable() | ||
export class UserGroupGuard implements CanActivate { | ||
constructor(private reflector?: Reflector) {} | ||
constructor(private reflector?: Reflector, private log?: MozLoggerService) {} |
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.
Nice!
a9f86cd
to
0ad1c74
Compare
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.
LGTM!
Because
This pull request
Issue that this pull request solves
Closes: # n/a
Checklist
Put an
x
in the boxes that apply