Drop DEBUG stuff

This commit is contained in:
rwxrob 2022-02-17 18:03:19 -05:00
parent e548af9a70
commit 010bcdcd39
No known key found for this signature in database
GPG Key ID: 2B9111F33082AE77

View File

@ -32,21 +32,8 @@ type Method func(args ...string) error
// ----------------------- errors, exit, debug ----------------------- // ----------------------- errors, exit, debug -----------------------
// DEBUG is set when os.Getenv("CMDBOX_DEBUG") is set to anything. // DoNotExit effectively disables Exit and ExitError allowing the
// Produces verbose debugging logs to stderr to help cmdbox users // program to continue running, usually for test evaluation.
// develop robust tools.
//
var DEBUG bool
func init() {
if os.Getenv("CMDBOX_DEBUG") != "" {
DEBUG = true
}
}
// DoNotExit is a utility for disabling any call to os.Exit via any
// caller in order to trap panics and use them for testing, etc.
//
var DoNotExit bool var DoNotExit bool
// ExitOff sets DoNotExit to false. // ExitOff sets DoNotExit to false.