diff options
author | Andreas Fankhauser hiddenalpha.ch | 2024-04-05 18:32:46 +0200 |
---|---|---|
committer | Andreas Fankhauser hiddenalpha.ch | 2024-04-05 18:32:46 +0200 |
commit | 193315d56302bac67b4a1688e892ac499d4052b4 (patch) | |
tree | 62cf95358ebf47110b82ab135529d8f90886b994 | |
parent | 074b68ef92389c4a916f1e74515a391c4aa5d5f6 (diff) | |
download | UnspecifiedGarbage-193315d56302bac67b4a1688e892ac499d4052b4.zip UnspecifiedGarbage-193315d56302bac67b4a1688e892ac499d4052b4.tar.gz |
Continue queue flooder which is handy to reproduce bugs related to queuing.
-rw-r--r-- | doc/note/links/links.txt | 1 | ||||
-rw-r--r-- | src/main/nodejs/misc/ProduceLotsOfQueues.js | 6 |
2 files changed, 5 insertions, 2 deletions
diff --git a/doc/note/links/links.txt b/doc/note/links/links.txt index 08a498e..f90be46 100644 --- a/doc/note/links/links.txt +++ b/doc/note/links/links.txt @@ -137,6 +137,7 @@ Links (Aka argument amplifiers) - [logging guards](https://stackoverflow.com/a/12953090/4415884) - [impl VS facade in lib](https://jira.post.ch/browse/SDCISA-15223) - [drop logger impl from lib](https://github.com/swisspost/vertx-redisques/pull/153) +- [Should my library attempt to configure logging?](https://www.slf4j.org/faq.html#configure_logging) ## Misleading log msg messages - "https://gitit.post.ch/projects/ISA/repos/zarquon/pull-requests/2/overview?commentId=61283" diff --git a/src/main/nodejs/misc/ProduceLotsOfQueues.js b/src/main/nodejs/misc/ProduceLotsOfQueues.js index 890f867..810ac63 100644 --- a/src/main/nodejs/misc/ProduceLotsOfQueues.js +++ b/src/main/nodejs/misc/ProduceLotsOfQueues.js @@ -104,8 +104,10 @@ } function onResponse( nonsense, rsp ){ var app = nonsense.app; - log.write("[DEBUG] < HTTP/"+ rsp.httpVersion +" "+ rsp.statusCode +" "+ rsp.statusMessage +"\n"); - for( var k of Object.keys(rsp.headers) ) log.write("[DEBUG] < "+ k +": "+ rsp.headers[k] +"\n"); + if( rsp.statusCode != 200 ){ + log.write("[DEBUG] < HTTP/"+ rsp.httpVersion +" "+ rsp.statusCode +" "+ rsp.statusMessage +"\n"); + for( var k of Object.keys(rsp.headers) ) log.write("[DEBUG] < "+ k +": "+ rsp.headers[k] +"\n"); + } rsp.on("data", NOOP); if( nonsense.i++ < nonsense.limit ){ putNextRequest(nonsense); |