Skip to content

Commit

Permalink
Merge branch 'improvement/ZENKO-780-configure-push-stats' into q/8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bert-e committed Jul 23, 2018
2 parents 94898f2 + afbd2a7 commit 486abd4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/management/poll.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ function getStats() {
}

function pushStats(managementEndpoint, instanceId, remoteToken, next) {
if (process.env.PUSH_STATS === 'false') {
return;
}
getStats().pipe(
postStats(managementEndpoint, instanceId, remoteToken, next));
setTimeout(pushStats, pushReportDelay,
Expand Down

0 comments on commit 486abd4

Please sign in to comment.