cloudworker
cloudworker copied to clipboard
Should -d (debug) be the default behavior?
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?)
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.