cloudworker icon indicating copy to clipboard operation
cloudworker copied to clipboard

Should -d (debug) be the default behavior?

Open davidbarratt opened this issue 5 years ago • 1 comments

I found it confusing that cloudworker doesn't log anything to the console (even if an error is thrown) unless the -d flag is added. Shouldn't this be the default behavior? (and perhaps a flag to supress output instead?)

davidbarratt avatar Dec 18 '19 17:12 davidbarratt

I dunno, I kinda like the default behavior — you don't get access to stdout/stderr in your Cloudflare workers either, so you'll want to have proper error handling in place to return 500s on unexpected errors and probably some kind of third-party logging solution.

I suppose I don't have a strong opinion about -d being the default as long as there's also some flavor of --no-debug available to emulate CF's behavior.

iameli avatar Dec 29 '19 23:12 iameli