mirror of
https://github.com/rwxrob/bonzai
synced 2024-11-04 18:00:18 +00:00
Drop DEBUG stuff
This commit is contained in:
parent
e548af9a70
commit
010bcdcd39
17
bonzai.go
17
bonzai.go
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user