workers-sdk icon indicating copy to clipboard operation
workers-sdk copied to clipboard

🐛 BUG: Duplicate printing of wrangler dev logs

Open joshthoward opened this issue 1 year ago • 3 comments

Which Cloudflare product(s) does this pertain to?

Wrangler

What version(s) of the tool(s) are you using?

all

What version of Node are you using?

v20.6.1

What operating system and version are you using?

Mac Sonoma

Describe the Bug

Observed behavior

Duplicate logs on state changes

⎔ Starting local server...
[wrangler:inf] Ready on http://localhost:59290
▲ [WARNING] Queues are currently in Beta and are not supported in wrangler dev remote mode.


⎔ Shutting down local server...
▲ [WARNING] Queues are currently in Beta and are not supported in wrangler dev remote mode.

or just (seemingly) randomly

▲ [WARNING] Queues are currently in Beta and are not supported in wrangler dev remote mode.


▲ [WARNING] Queues are currently in Beta and are not supported in wrangler dev remote mode.


▲ [WARNING] Queues are currently in Beta and are not supported in wrangler dev remote mode.

Expected behavior

Single log per distinct warning.

Steps to reproduce

Please provide the following:

  • Attach a queue or a sqlite DO which are in beta to produce a warning. I have seen this with other warnings, so there might be an easier way.

Please provide a link to a minimal reproduction

No response

Please provide any relevant error logs

No response

joshthoward avatar Sep 27 '24 20:09 joshthoward

@penalosa and I found the cause of this yesterday

RamIdeas avatar Sep 27 '24 21:09 RamIdeas

@penalosa and @RamIdeas, is this fixed by the --x-dev-env work?

emily-shen avatar Oct 09 '24 15:10 emily-shen

@penalosa and @RamIdeas, is this fixed by the --x-dev-env work?

No, there's still an issue here—every time the Worker reloads we re-print these messages.

penalosa avatar Oct 09 '24 17:10 penalosa