File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
packages/indexer-common/src Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -24,15 +24,16 @@ function logWorkTime(
24
24
caller : string | undefined ,
25
25
milliseconds : number ,
26
26
) {
27
- const workTimeWarningThreshold = 1000
27
+ const workTimeWarningThreshold = 5000
28
28
const workTime = Date . now ( ) - workStarted
29
- logger . debug ( `timer loop took ${ loopTime } ms workTime ${ workTime } caller(${ caller } )` )
30
- if ( loopTime > milliseconds + workTimeWarningThreshold ) {
29
+ if ( workTime > milliseconds + workTimeWarningThreshold ) {
31
30
logger . warn (
32
- 'timer work took longer than the sequential timer was configured for (+1s )' ,
31
+ 'timer work took longer than the sequential timer was configured for (>5s )' ,
33
32
{
34
33
loopTime,
34
+ workTime,
35
35
milliseconds,
36
+ caller,
36
37
} ,
37
38
)
38
39
}
You can’t perform that action at this time.
0 commit comments