tslog icon indicating copy to clipboard operation
tslog copied to clipboard

Bug: Error logging with [email protected] has issues

Open mgcrea opened this issue 1 year ago • 1 comments

Describe the bug When logging a simple error when using bun:

log.fatal(new Error("I am a pretty Error with a stacktrace."));

The output log is somehow broken with many empty lines:

 Error  I am a pretty Error with a stacktrace., 26, 20, 26, 20, /Users/foo/Projects/bar/baz/src/app.ts
error stack:
  • app.ts      module code
        /src/app.ts:26
  • 

  • 

  • 

  • 

To Reproduce Steps to reproduce the behavior:

  1. Start a ts file with [email protected]
  2. log.fatal(new Error("I am a pretty Error with a stacktrace."));

Expected behavior No see empty lines

Bun Version 1.1.0

mgcrea avatar Apr 04 '24 09:04 mgcrea

https://bun.sh/docs/runtime/nodejs-apis

Bun's goal is to have full node compatability. If a package does not work in bun but does in node, the issue should be opened in bun, not the package itself.

drewbitt avatar Apr 07 '24 06:04 drewbitt