/* }}} */
/* debug operations {{{ */
492735
func (ls *LState) Where(level int) string {
	return ls.where(level, false)
}
380185
func Debugf(ctx context.Context, format string, v ...interface{}) {
	instance.Debugf(ctx, format, v...)
}
1113661
func (sl *standardLogger) Debug(info, msg string) {
	sl.writeLog("DEBUG", info, msg)
}
404116
func Debugf(tag interface{}, message interface{}, params ...interface{}) {
	Logger.Debug(fmt.Sprintf("[%s] %s", tag, message), params...)
	EmitterLogs.Emit(newLogLine(fmt.Sprintf("%s", tag), DebugLogTypeId, fmt.Sprintf(fmt.Sprintf("%s", message), params...), nil))
}
59235
func (m *MonitorFormatter) debugEvents(prefix string, data []byte) {
	dm := monitor.DebugMsg{}

	if err := binary.Read(bytes.NewReader(data), byteorder.Native, &dm); err != nil {
		fmt.Printf("Error while parsing debug message: %s\n", err)
	}
	if m.match(monitorAPI.MessageTypeDebug, dm.Source, 0) {
		switch m.Verbosity {
		case INFO:
			dm.DumpInfo(data)
		case JSON:
			dm.DumpJSON(prefix)
		default:
			dm.Dump(prefix)
		}
	}
}
319365
func (logger *Logger) Debugf(m string, args ...interface{}) {
	logger.log(DEBUG, m, args...)
}
792746
func (c *ServicedCli) initDebug() {
	c.app.Commands = append(c.app.Commands, cli.Command{
		Name:        "debug",
		Usage:       "manage debugging",
		Description: "",
		Subcommands: []cli.Command{
			{
				Name:         "enable-metrics",
				Usage:        "Enable debug metrics",
				Description:  "serviced debug enable-metrics",
				Before:       c.cmdEnableDebugMetrics,
			},
			{
				Name:         "disable-metrics",
				Usage:        "Disable debug metrics",
				Description:  "serviced debug disable-metrics",
				Before:       c.cmdDisableDebugMetrics,
			},		},
	})
}
229921
func (client *Client) WithDebug(debug bool) *Client {
	client.SetDebug(debug)
	return client
}
802877
func (b *simple) Debug(msg ...interface{}) {
	stdlog.Printf("[DEBUG] %s %s", fmt.Sprint(msg...), pretty(b.fields))
}
328577
func (a *API) Debug() {
	a.AddHandler(func(res http.ResponseWriter, req *http.Request) {
		log.Println(req)
	})
}
1312936
func Debug(v ...interface{}) {
	f := extractFields(&v)
	std.OutputF(LevelDebug, 2, fmt.Sprint(v...), f)
}
47679
func (l *Logger) Debug(args ...interface{}) {
	kitlevel.Debug(l.Log).Log(args...)
}
1283607
func (l *DebugLogger) Debug(v ...interface{}) {
	if l.debug == true {
		l.Output(2, fmt.Sprint(v...))
	}
}
1251943
func (l *Logger) Debug(msg string, fields map[string]interface{}) error {
	return l.Log(LvDebug, msg, fields)
}
230315
func (l *Logger) Debug(v ...interface{}) {
	l.Fprint(l.flags, LEVEL_DEBUG, 2, fmt.Sprint(v...), nil)
}
528584
func Debugf(c context.Context, fmt string, args ...interface{}) {
	Get(c).LogCall(Debug, 1, fmt, args)
}
249746
func Debug(serviceName string, methodName string, request proto.Message, response proto.Message, err error, duration time.Duration) {
	protolion.Debug(event(serviceName, methodName, request, response, err, duration))
}