示例#1
0
func (l queueLog) Errorf(format string, a ...interface{}) {
	log.ErrorfDepth(1, l.prefix+format, a...)
	l.traceLog.Errorf(format, a...)
}
示例#2
0
// serverErrorf logs the provided error and returns an error that should be returned by
// the RPC endpoint method.
func (s *adminServer) serverErrorf(format string, args ...interface{}) error {
	log.ErrorfDepth(1, format, args...)
	return errAdminAPIError
}
示例#3
0
// serverErrors logs the provided errors and returns an error that should be returned by
// the RPC endpoint method.
func (s *adminServer) serverErrors(errors []error) error {
	log.ErrorfDepth(1, "%v", errors)
	return errAdminAPIError
}
示例#4
0
func (r *raftLogger) Errorf(format string, v ...interface{}) {
	log.ErrorfDepth(context.TODO(), 1, r.logPrefix()+format, v...)
}
示例#5
0
// serverError logs the provided error and returns an error that should be returned by
// the RPC endpoint method.
func (s *adminServer) serverError(err error) error {
	log.ErrorfDepth(1, "%s", err)
	return errAdminAPIError
}
示例#6
0
func (r *raftLogger) Error(v ...interface{}) {
	log.ErrorfDepth(context.TODO(), 1, r.logPrefix(), v...)
}
示例#7
0
func (r *raftLogger) Panicf(format string, v ...interface{}) {
	log.ErrorfDepth(context.TODO(), 1, r.logPrefix()+format, v...)
	panic(fmt.Sprintf(r.logPrefix()+format, v...))
}
示例#8
0
func (r *raftLogger) Panic(v ...interface{}) {
	s := fmt.Sprint(v...)
	log.ErrorfDepth(context.TODO(), 1, s)
	panic(s)
}
示例#9
0
// serverError logs the provided error and returns an error that should be returned by
// the RPC endpoint method.
func (s *adminServer) serverError(err error) error {
	log.ErrorfDepth(context.TODO(), 1, "%s", err)
	return errAdminAPIError
}
示例#10
0
func (l queueLog) Error(err error) {
	const format = "%s"
	log.ErrorfDepth(context.TODO(), 1, l.prefix+format, err)
	l.traceLog.Errorf(format, err)
}