Esempio n. 1
0
// SetDebug sets debug mode for  This will log commands at the debug level, and
// include the output of a command in the resulting error if the command fails.
func SetDebug(debug bool) {
	// sort of unnecessary but hey, standards
	lock.Lock()
	defer lock.Unlock()
	globalDebug = debug
	if debug {
		lion.SetLogger(lion.GlobalLogger().AtLevel(lion.LevelDebug))
	}
}
Esempio n. 2
0
// GlobalLogger returns the global go-kit Logger.
func GlobalLogger() log.Logger {
	return NewLogger(lion.GlobalLogger())
}