Commit 02a8f7f342c3142d257642cf11877c6a6171550d

Authored by Adhidarma Hadiwinoto
1 parent f9cd2c0ed2
Exists in master

log delta_time

Showing 1 changed file with 3 additions and 2 deletions Side-by-side Diff

... ... @@ -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) {