// for debugging
502682
func (n *roFileVersion) fullPath() string {
	if n == nil {
		return ""
	}
	return filepath.Join(n.parent.fullPath(), n.name)
}
214422
func (p P) Debugf(format string, v ...interface{}) {
	if !D {
		return
	}
	p.logf(debug, format, v...)
}
725282
func (m *MockPackageCompiler) For(arg0 []job.Job, arg1 ui.Stage) ([]installation.CompiledPackageRef, error) {
	ret := m.ctrl.Call(m, "For", arg0, arg1)
	ret0, _ := ret[0].([]installation.CompiledPackageRef)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}
983936
func (e *Errors) Debug(format string, a ...interface{}) error {
	return e.add(Debug, format, a...)
}
806744
func (l *Logger) Debug(v ...interface{}) {
	if l.Level >= DebugLevel {
		l.Logger.Print(DebugLevel.String() + fmt.Sprint(v...))
	}
}
752780
func (s *Application) Debug(on bool) *Application {
	s.Core.SetDebug(on)
	return s
}
817075
func (l *Logger) Debugf(format string, args ...interface{}) {
	l.logf(l.app, logLevelDebug, format, false, args...)
}
140272
func (c *Conn) debug(fn func(d *debugger)) {
	if c.d == nil {
		return
	}

	fn(c.d)
}
764528
func (b *simple) Debugf(format string, args ...interface{}) {
	stdlog.Print(fmt.Sprintf("[DEBUG] "+format, args...), " ", pretty(b.fields))
}
1045827
func (b *HttpRequest) Debug(isdebug bool) *HttpRequest {
	b.setting.ShowDebug = isdebug
	return b
}
1312936
func Debug(v ...interface{}) {
	f := extractFields(&v)
	std.OutputF(LevelDebug, 2, fmt.Sprint(v...), f)
}
618790
func (l *LeveledLogger) Debugf(format string, v ...interface{}) {
	if l.Level >= LevelDebug {
		fmt.Fprintf(l.stdout(), "[DEBUG] "+format+"\n", v...)
	}
}
1171051
func Debugf(format string, a ...interface{}) {
	if !debug {
		return
	}
	output("[DEBG]", fmt.Sprintf(format, a...))
}
449594
func Debugf(format string, v ...interface{}) {
	f := extractFields(&v)
	std.OutputF(LevelDebug, 2, fmt.Sprintf(format, v...), f)
}
203364
func debugf(format string, v ...interface{}) {
	if logLevel >= Debug {
		logger.Printf(format, v...)
	}
}
236588
func (s *SimpleLogger) Debug(v ...interface{}) {
	if s.level <= core.LOG_DEBUG {
		s.DEBUG.Output(2, fmt.Sprint(v...))
	}
	return
}
781861
func For(msg string, timeout, interval time.Duration, f func() (bool, error)) error {
	log.Infof("Wait for %s [timeout: %s, interval: %s]", msg, timeout, interval)

	var lastErr string
	timeUp := time.After(timeout)
	for {
		select {
		case <-timeUp:
			return fmt.Errorf("time limit exceeded: last error: %s", lastErr)
		default:
		}

		stop, err := f()
		if stop {
			return nil
		}
		if err != nil {
			lastErr = err.Error()
		}

		time.Sleep(interval)
	}
}