mirror of
https://github.com/anyproto/anytype-heart.git
synced 2025-06-10 01:51:07 +09:00
GO-3747 fix
This commit is contained in:
parent
a9232dd702
commit
6bd5f1e17e
1 changed files with 2 additions and 2 deletions
|
@ -88,9 +88,9 @@ func SharedLongMethodsInterceptor(ctx context.Context, req any, methodName strin
|
|||
trace := debug.Stack(true)
|
||||
// double check, because we can have a race and the stack trace can be taken after the method is already finished
|
||||
if stackTraceHasMethod(methodName, trace) {
|
||||
traceCompressed := debug.CompressBytes(trace)
|
||||
lastTrace.Store(traceCompressed)
|
||||
lastTrace.Store(string(trace))
|
||||
if i == UnaryWarningInProgressIndex {
|
||||
traceCompressed := debug.CompressBytes(trace)
|
||||
l.With("ver", 2).With("in_progress", true).With("goroutines", traceCompressed).With("total", time.Since(start).Milliseconds()).Warnf("grpc unary request is taking too long")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue