src/server/pkg/log/log.go
func (l *logger) Log(request interface{}, response interface{}, err error, duration time.Duration) {
	if err != nil {
		l.LogAtLevelFromDepth(request, response, err, duration, logrus.ErrorLevel, 4)
	} else {
		l.LogAtLevelFromDepth(request, response, err, duration, logrus.InfoLevel, 4)
	}
	// We have to grab the method's name here before we
	// enter the goro's stack
	go l.ReportMetric(getMethodName(), duration, err)
}
func (l *logger) Log(request interface{}, response interface{}, err error, duration time.Duration) {
	if err != nil {
		l.LogAtLevelFromDepth(request, response, err, duration, logrus.ErrorLevel, 4)
	} else {
		l.LogAtLevelFromDepth(request, response, err, duration, logrus.InfoLevel, 4)
	}
	// We have to grab the method's name here before we
	// enter the goro's stack
	go l.ReportMetric(getMethodName(), duration, err)
}
func ( l * logger ) Log ( request interface { } , response interface { } , err error , duration time . Duration ) { if err != nil { l . LogAtLevelFromDepth ( request , response , err , duration , logrus . ErrorLevel , 4 ) } else { l . LogAtLevelFromDepth ( request , response , err , duration , logrus . InfoLevel , 4 ) } // We have to grab the method's name here before we // enter the goro's stack go l . ReportMetric ( getMethodName ( ) , duration , err ) }
// Helper function used to log requests and responses from our GRPC method
// implementations
Helper function used to log requests and responses from our GRPC method implementations