Comparing version 0.1.4 to 0.1.5
@@ -35,3 +35,6 @@ "use strict" | ||
destroy: this.parseUInt(q.d) === 1, | ||
} | ||
}, | ||
logging: { | ||
request: this.parseUInt(q.lr) === 1, | ||
}, | ||
} | ||
@@ -38,0 +41,0 @@ c.latency.actual = u.makeNoise(c.latency.carrier, c.latency.noise) |
@@ -43,2 +43,6 @@ "use strict" | ||
if (setting.logging.request) { | ||
const now = (new Date()).toISOString() | ||
console.log(`[${now}] ${req.method} - ${req.url}`) | ||
} | ||
if (res.finished) { | ||
@@ -45,0 +49,0 @@ return |
{ | ||
"name": "simdummy", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"description": "Simple tool for HTTP response simulation, automated and load testing", | ||
"main": "index.js", | ||
"scripts": { | ||
"start": "node entry.js 9999" | ||
"start": "NODE_ENV=production node entry.js 9999" | ||
}, | ||
@@ -9,0 +9,0 @@ "author": "Alex Pereverzyev", |
# simdummy | ||
[![npm](https://img.shields.io/npm/v/simdummy.svg?style=flat-square)](https://www.npmjs.org/package/simdummy) | ||
Simple tool for HTTP response simulation, automated and load testing. | ||
@@ -83,2 +85,3 @@ | ||
- d=1 - destroy request socket | ||
- lr=1 - log request to console | ||
@@ -85,0 +88,0 @@ |
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
12257
217
150