-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
Bug: Only a few levels are printed in pretty mode #285
Comments
My fix was succesfully merge, but this later commit breaks it again https://github.com/fullstack-build/tslog/commits/v4.9.3/#diff-f37f417161a3f575bc97f812d0cc6c5da9a62f6fe5abbb342b4b2789ecad9ada |
Fix is ready... |
@terehov fix is ready |
Bumping this @terehov :) Having depth set to Infinity, or at least 5 or 10 would be great! Or a simpler way to set it via initialization options |
@jakubhruby could you potentially show how to solve this in the mean time using patch? https://bun.sh/docs/install/patch I gave it a try, but wasn't able to accomplish what you did |
@terehov |
Describe the bug
Only a few levels are printed in pretty mode. It's caused by broken
_extend
function, which ignoresdepth
settings, therefore the hardcoded depth with value 2 is applied.To Reproduce
Try to log an object with 3+ depth - only 3 levels are pretty printed, the deeper levels are represented with
[object Object]
stringhttps://codepen.io/jakubhruby/pen/OJYgzbR?editors=1111
Expected behavior
Full depth object is printed.
Screenshots
Here is the code which tries to assign
opts
(which includesdept: Infinite
) toctx
, but it doesn't andctx
remains untouched. Below the default2
is assigned toctx.depth
which limits output to three levels.The text was updated successfully, but these errors were encountered: