Closed skyrpex closed 3 weeks ago
Thanks for opening this pull request! :tada: Please consult the contributing guidelines for details on how to contribute to this project. If you need any assistance, don't hesitate to ping the relevant owner over Discord.
Topic | Owner |
---|---|
Wing SDK and utility APIs | @chriscbr |
Wing Console | @ainvoner , @skyrpex , @polamoros |
JSON, structs, primitives and collections | @hasanaburayyan |
Platforms and plugins | @hasanaburayyan |
Frontend resources (website, react, etc) | @tsuf239 |
Language design | @chriscbr |
VSCode extension and language server | @markmcculloh |
Compiler architecture, inflights, lifting | @yoav-steinberg |
Wing Testing Framework | @tsuf239 |
Wing CLI | @markmcculloh |
Build system, dev environment, releases | @markmcculloh |
Library Ecosystem | @chriscbr |
Documentation | @hasanaburayyan |
SDK test suite | @tsuf239 |
Examples | @hasanaburayyan |
Wing Playground | @eladcon |
Console preview environment is available at https://wing-console-pr-6625.fly.dev :rocket:
@ainvoner not sure if the snapshots should have those errors, though. Not sure where they come from 🤔
@MarkMcCulloh can you please review? 🙏🏻
I restored the consoleLogger.ts so it only logs to the Console UI errors with source=user
. There's a problem, though, and it's that when invoking a function from the UI, the error will be logged as source=compiler
. Will check if I can fix that.
bring cloud;
// The trace is emitted with source=compiler.
new cloud.Function(inflight (ctx) => {
throw "oops";
});
We may want to revisit our logging system in the Console, since it may have lost its meaning. Anyways, we are now logging runtime errors properly in the Console logs view.
As a side effect, additional error logs appear in the test snapshots (which seems the correct behavior to me).
Thanks for the feedback, Mark. I'm closing this down to gather my thoughts and also some data because I feel there's something fundamentally wrong with the current logging setup.
In some instances, runtime errors when invoking
cloud.Function
won't appear in the logs, or they may appear under Verbose logs.Related to #6622 but doesn't close it.