Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Should -d (debug) be the default behavior? #131

Open
davidbarratt opened this issue Dec 18, 2019 · 1 comment
Open

Should -d (debug) be the default behavior? #131

davidbarratt opened this issue Dec 18, 2019 · 1 comment

Comments

@davidbarratt
Copy link

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?)

@iameli
Copy link

iameli commented Dec 29, 2019

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants