Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

async-logging

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

async-logging - npm Package Compare versions

Comparing version 0.1.15 to 0.1.17

4

lib/log-cluster.js

@@ -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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc