Compare View
Commits (2)
Changes
Showing 3 changed files Side-by-side Diff
gateway/pull.js
... | ... | @@ -123,8 +123,9 @@ function pullTask() { |
123 | 123 | pullTaskLocked = false; |
124 | 124 | |
125 | 125 | const lame_limit = 10 * 1000; |
126 | - if ((new Date() - start_time) > lame_limit) { | |
127 | - logger.warn('LAME-PULL: PULL response from CORE exceeds ' + lame_limit + ' secs'); | |
126 | + const delta_time = new Date() - start_time; | |
127 | + if (delta_time > lame_limit) { | |
128 | + logger.warn('LAME-PULL: PULL response from CORE exceeds ' + lame_limit + ' secs', {delta_time: delta_time}); | |
128 | 129 | } |
129 | 130 | |
130 | 131 | if (error) { |
package-lock.json