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:
parent
aa0a576f6e
commit
f10c43c46f
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue