-
Notifications
You must be signed in to change notification settings - Fork 2
Ability to add user info when logging (overrides or adds info if there isn't any) #42
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -23,6 +23,12 @@ type LogFunction = ( | |||||
| }, | ||||||
| // Log level (default is info) | ||||||
| level?: LogLevel, | ||||||
| // Optional Canvas userId that overrides the current userId from the session (if there is one) | ||||||
|
||||||
| // Optional Canvas userId that overrides the current userId from the session (if there is one) | |
| // Optional user ID that overrides the current user ID from the session (if there is one) |
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.
The overriddenUserInfo object is always created even when all override values are undefined. Consider only including this object when at least one override value is provided to avoid unnecessary data in logs.