Skip to content
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: resolved logging objects being undefined or missing #1509

Merged
merged 5 commits into from
Jan 13, 2025

Conversation

abhilash-sivan
Copy link
Contributor

@abhilash-sivan abhilash-sivan commented Jan 13, 2025

  • refs INSTA-12533
  • some log messages did not log the corresponding objects

note:
In some places, I have used %s, and %o notations.
In some places where JSON.stringify is already used, I followed the same to keep the logs clean and more readable.

@abhilash-sivan abhilash-sivan marked this pull request as ready for review January 13, 2025 13:49
@abhilash-sivan abhilash-sivan requested a review from a team as a code owner January 13, 2025 13:49
@kirrg001
Copy link
Contributor

fix: log object structure made compatible with major loggers #1509

Suggestion

fix: resolved logging objects being undefined or missing

refs xxx

  • some log messages did not log the corresponding objects

@abhilash-sivan abhilash-sivan changed the title fix: log object structure made compatible with major loggers fix: resolved logging objects being undefined or missing Jan 13, 2025
 - refs INSTA-12533
 - some log messages did not log the corresponding objects
@abhilash-sivan abhilash-sivan force-pushed the fix-log-object-structure branch from 63cebfa to fe99ffb Compare January 13, 2025 14:41
Copy link
Contributor

@kirrg001 kirrg001 left a comment

Choose a reason for hiding this comment

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

LGTM

We should probably use error?.stack & error?.message everywhere as an extra protection. If we name all errors error or err, we can more easily refactor things.

@kirrg001 kirrg001 merged commit 7715fed into main Jan 13, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants