async-logging
Advanced tools
Comparing version 0.1.15 to 0.1.17
@@ -51,4 +51,4 @@ 'use strict'; | ||
'machineName' : os.hostname(), | ||
'maxLife' : 1000 * 3600 * 2, //two hours | ||
'maxMessages' : 3600, //0.5 msg/pec, 2 hours | ||
'maxLife' : 1000 * 3600, //[1, 2) hours | ||
'maxMessages' : 1024, //0.5 msg/pec, 1 hour | ||
'waitForPublisher': 3000//3s | ||
@@ -55,0 +55,0 @@ }; |
@@ -28,3 +28,3 @@ 'use strict'; | ||
totalMessages = 0, | ||
maxMessages = options.maxMessages, | ||
maxMessages = Math.floor((Math.random() + 1) * (options.maxMessages || 1024)), | ||
waitForPublisher = options.waitForPublisher || 2000,//2 sec | ||
@@ -34,2 +34,7 @@ maxLife = options.maxLife, | ||
if(require('cluster').isMaster){ | ||
//not sure why master got here too... | ||
return; | ||
} | ||
wss.shutDown(); | ||
@@ -147,3 +152,3 @@ | ||
if(maxLife){ | ||
setTimeout(suicide, maxLife); | ||
setTimeout(suicide, maxLife * Math.floor((Math.random() * maxLife))); | ||
} | ||
@@ -150,0 +155,0 @@ |
{ | ||
"author": "cubejs", | ||
"name": "async-logging", | ||
"version": "0.1.15", | ||
"version": "0.1.17", | ||
"description": "0.1.6 is the same as 0.2.2 just to get around ebay-logging-client vs. async-logging-client change", | ||
@@ -6,0 +6,0 @@ "repository": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34093
736