winglang / wing

A programming language for the cloud ☁️ A unified programming model, combining infrastructure and runtime code into one language ⚡
https://winglang.io
Other
5.04k stars 196 forks source link

Logs from container appear with "Compiler" tag #7040

Open Chriscbr opened 2 months ago

Chriscbr commented 2 months ago

I tried this:

Here I was using the dynamodb Winglib, which runs on the simulator using the dynamodb-local docker image:

bring dynamodb;

new dynamodb.Table(
  hashKey: "id",
  attributes: [
    { name: "id", type: "S" },
  ],
);

This happened:

Logs generated by the app were associated with the Compiler for an unknown reason:

Screenshot 2024-08-21 at 6 54 39 PM

I expected this:

No response

Is there a workaround?

No response

Anything else?

No response

Wing Version

0.82.7

Node.js Version

20.12.2

Platform(s)

No response

Community Notes

Chriscbr commented 2 months ago

If I had to guess, this is probably a bug with the implementation of sim.Container not forwarding the containers STDOUT/STDERR to the simulator's tracing system.