src/server/auth/server/api_server.go
func (a *apiServer) LogResp(request interface{}, response interface{}, err error, duration time.Duration) {
	if err == nil {
		a.pachLogger.LogAtLevelFromDepth(request, response, err, duration, logrus.InfoLevel, 4)
	} else if authclient.IsErrNotActivated(err) {
		a.pachLogger.LogAtLevelFromDepth(request, response, err, duration, logrus.DebugLevel, 4)
	} else {
		a.pachLogger.LogAtLevelFromDepth(request, response, err, duration, logrus.ErrorLevel, 4)
	}
}
func (a *apiServer) LogResp(request interface{}, response interface{}, err error, duration time.Duration) {
	if err == nil {
		a.pachLogger.LogAtLevelFromDepth(request, response, err, duration, logrus.InfoLevel, 4)
	} else if authclient.IsErrNotActivated(err) {
		a.pachLogger.LogAtLevelFromDepth(request, response, err, duration, logrus.DebugLevel, 4)
	} else {
		a.pachLogger.LogAtLevelFromDepth(request, response, err, duration, logrus.ErrorLevel, 4)
	}
}
func ( a * apiServer ) LogResp ( request interface { } , response interface { } , err error , duration time . Duration ) { if err == nil { a . pachLogger . LogAtLevelFromDepth ( request , response , err , duration , logrus . InfoLevel , 4 ) } else if authclient . IsErrNotActivated ( err ) { a . pachLogger . LogAtLevelFromDepth ( request , response , err , duration , logrus . DebugLevel , 4 ) } else { a . pachLogger . LogAtLevelFromDepth ( request , response , err , duration , logrus . ErrorLevel , 4 ) } }
// LogResp is like log.Logger.Log(). However,
// 1) It assumes that it's being called from a defer() statement in a GRPC
//    method , and correspondingly extracts the method name from the grandparent
//    stack frame
// 2) It logs NotActivatedError at DebugLevel instead of ErrorLevel, as, in most
//    cases, this error is expected, and logging it frequently may confuse users
LogResp is like log . Logger . Log () . However 1 ) It assumes that it s being called from a defer () statement in a GRPC method and correspondingly extracts the method name from the grandparent stack frame 2 ) It logs NotActivatedError at DebugLevel instead of ErrorLevel as in most cases this error is expected and logging it frequently may confuse users