enh: Change the default value of debug
to a FALSE-like sentinel value
#962
Labels
help wanted
Solution is well-specified enough that any community member could fix
There are multiple reports of confusion around
debug
and the default error handler.interactive()
Default
debug
value:plumber/R/plumber.R
Lines 1338 to 1340 in 7f51e24
Proposal
Change the default value of
debug
to behave like aFALSE
value.To maintain least surprise (default to same locally, display a message with instructions on how to turn in on:
Tasks
debug
to behave like aFALSE
value.rlang::inform(.frequency="once", .frequency_id="pr_set_debug_message")
message.rlang::is_interactive()
isTRUE
.#* @plumber
example withinpr_set_debug()
docs to show to to set the value within a plumbed fileThe text was updated successfully, but these errors were encountered: