forked from svrjs/svrjs
Move counter if blocks to another if block
This commit is contained in:
parent
4f5f96dfdb
commit
d789fea921
1 changed files with 2 additions and 2 deletions
4
svr.js
4
svr.js
|
@ -2954,9 +2954,9 @@ if (!cluster.isPrimary) {
|
|||
} else {
|
||||
headWritten = true;
|
||||
}
|
||||
if (code >= 400 && code <= 499) err4xxcounter++;
|
||||
if (code >= 500 && code <= 599) err5xxcounter++;
|
||||
if (code >= 400 && code <= 599) {
|
||||
if (code >= 400 && code <= 499) err4xxcounter++;
|
||||
else if (code >= 500 && code <= 599) err5xxcounter++;
|
||||
serverconsole.errmessage("Server responded with " + code.toString() + " code.");
|
||||
} else {
|
||||
serverconsole.resmessage("Server responded with " + code.toString() + " code.");
|
||||
|
|
Reference in a new issue