// isDebugMode determines if teleport is running in a "debug" mode.
// It looks at DEBUG environment variable
546593
func isDebugMode() bool {
	v, _ := strconv.ParseBool(os.Getenv(teleport.DebugEnvVar))
	return v
}
18477
func (ml *MockRouteCountLogger) DebugD(title string, data map[string]interface{}) {
	ml.logger.DebugD(title, data)
}
1247389
func (r *Runtime) SetDebug(debug bool) {
	r.Debug = debug
	middleware.Debug = debug
}
411327
func DebugPauseDefault(loc DebugLocation, name string, state StateBag) {
	var locationString string
	switch loc {
	case DebugLocationAfterRun:
		locationString = "after run of"
	case DebugLocationBeforeCleanup:
		locationString = "before cleanup of"
	}

	fmt.Printf("Pausing %s step '%s'. Press any key to continue.\n", locationString, name)

	var line string
	fmt.Scanln(&line)
}
1307301
func (l *Log) Debugf(format string, args ...interface{}) {
	opts := getLoggerOpts(l.module, api.DEBUG)
	if !opts.levelEnabled {
		return
	}
	if l.loadCustomLogger() {
		l.customLogger.Debugf(format, args...)
		return
	}
	l.logf(opts, api.DEBUG, format, args...)
}
1126328
func HasDebug(ctx context.Context) bool {
	_, ok := ctx.Value(ctxKeyDebug).(bool)
	return ok
}
424215
func (l *dglog) Debug(v ...interface{}) {
	if l.runLevel == common.RUN_DEBUG {
		v = append([]interface{}{common.RUN_DEBUG_FORMAT}, v...)
		logDataChan <- fmt.Sprint(v...)
	}
}
1183778
func (n PathNode) DebugString() string {
	return fmt.Sprintf("%s(ptr=%s)", n.Name, n.BlockPointer)
}
38513
func (l logger) Debugf(format string, args ...interface{}) {
	l.entry.Debugf(format, args...)
}
243111
func (writer *SocketWriter) Debugf(format string, args ...interface{}) {
	if nil == writer.writer || DEBUG < writer.level {
		return
	}

	writer.writef(DEBUG, format, args...)
}
966752
func (d *Daemon) DebugEnabled() bool {
	return option.Config.Opts.IsEnabled(option.Debug)
}
1245854
func (entry *Entry) Debugln(args ...interface{}) {
	if entry.lgEntry.Logger.Level >= lg.DebugLevel {
		entry.lgEntry.WithFields(entry.fields).Debugln(entry.sprintlnn(args...))
	}
}
1036560
func Debug(format string, values ...interface{}) {
	if lvl() <= DebugLevel {
		logger.Logf("[DEBUG]    "+format, values...)
	}
}
16044
func Debug(v ...interface{}) {
	if std.Level >= DebugLevel {
		std.Logger.Print(DebugLevel.String() + fmt.Sprint(v...))
	}
}
806744
func (l *Logger) Debug(v ...interface{}) {
	if l.Level >= DebugLevel {
		l.Logger.Print(DebugLevel.String() + fmt.Sprint(v...))
	}
}
1083741
func (e *Entry) Debugf(msg string, v ...interface{}) {
	e.Debug(fmt.Sprintf(msg, v...))
}
681898
func IsDebug(ctx context.Context) bool {
	bv, ok := ctx.Value(ctxKeyDebug).(bool)
	if !ok {
		return false
	}
	return bv
}