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

Non verbose proxy

Open davidmartos96 opened this issue 3 years ago • 2 comments

Is there a way to launch the wrangler pages dev proxy in a way that doesn't log every single GET request? I would like it to show only console logs from the worker code during development.

davidmartos96 avatar Jan 03 '22 10:01 davidmartos96

We should consider this for wrangler dev as well, same idea.

Electroid avatar Jan 05 '22 17:01 Electroid

Now that we're using wrangler dev's server, I'll remove the pages label as, like @Electroid says, this could be a feature for wrangler dev in general.

GregBrimble avatar Aug 09 '22 08:08 GregBrimble

Discuss internally about how we want to proceed with a possible --quiet mode

JacobMGEvans avatar Aug 15 '22 17:08 JacobMGEvans

Pretty sure I accidentally implemented this as part of https://github.com/cloudflare/wrangler2/pull/1538 - once it's merged we just need a flag/setting to expose it as an option for regular dev.

rozenmd avatar Aug 30 '22 17:08 rozenmd

Pretty sure I accidentally implemented this as part of #1538 - once it's merged we just need a flag/setting to expose it as an option for regular dev.

"accidental feature" should be a new PR tag lol

JacobMGEvans avatar Sep 01 '22 02:09 JacobMGEvans

@rozenmd with that PR merged is this issue resolved?

JacobMGEvans avatar Sep 08 '22 22:09 JacobMGEvans

We still need to add a flag @JacobMGEvans - but the miniflare-cli now disables logging if logLevel === "none"

in api/dev.tsx I call startDev with logLevel: "none", to disable miniflare's route logging.

rozenmd avatar Sep 09 '22 08:09 rozenmd

I'm on it 😁

JacobMGEvans avatar Sep 09 '22 13:09 JacobMGEvans