1
0
Fork 0
mirror of https://github.com/anyproto/anytype-heart.git synced 2025-06-08 05:47:07 +09:00

add possible error to the log

This commit is contained in:
Roman Khafizianov 2023-04-25 18:17:59 +02:00 committed by Mikhail Iudin
parent aa0a576f6e
commit f10c43c46f
No known key found for this signature in database
GPG key ID: FAAAA8BAABDFF1C0

View file

@ -130,7 +130,7 @@ func main() {
resp, err = handler(ctx, req)
close(doneCh)
if time.Since(start) > defaultUnaryWarningAfter {
log.With("method", info.FullMethod).With("in_progress", false).With("total", time.Since(start).Milliseconds()).Warnf("grpc unary request took too long")
log.With("method", info.FullMethod).With("error", err).With("in_progress", false).With("total", time.Since(start).Milliseconds()).Warnf("grpc unary request took too long")
}
return
})