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

Error logging lost stack trace #108

Open
huozhi opened this issue Aug 23, 2022 · 0 comments
Open

Error logging lost stack trace #108

huozhi opened this issue Aug 23, 2022 · 0 comments

Comments

@huozhi
Copy link
Member

huozhi commented Aug 23, 2022

Observed

The errors logging through @edge-runtime/primitives/console.js will be formated, then the error trace becomes one line error string which lost the trace context. it's hard to debug. Wonder if we can tweak here to log more information.

Workaround

Currently I work around by change this in console primitives so that I could see the original logging.

var error = /* @__PURE__ */ bareError // __name(format(...args) => bareError((...args)), "error");
var log = /* @__PURE__ */ bareLog // __name(format(...args) => bareLog((...args)), "log");

Expected

Ideally I can see error log tracing and I don't have to change it

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

No branches or pull requests

1 participant