Browse Source

fix: Merge pull request #1107 from pelias/fix-verbose-error-output

Fix extremely verbose, repeated error output
pull/1104/merge
Julian Simioni 7 years ago committed by GitHub
parent
commit
9b09c7739b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      middleware/sendJSON.js

2
middleware/sendJSON.js

@ -59,8 +59,8 @@ function sendJSONResponse(req, res, next) {
statusCode = Math.max( statusCode, 500 );
break; // break on first match
}
logger.warn( 'unknown geocoding error string:', err );
}
logger.warn( 'unknown geocoding error string:', err );
} else {
logger.warn( 'unknown geocoding error type:', typeof err, err );
}

Loading…
Cancel
Save