Skip to content

Commit 664b33a

Browse files
Correct scope of the url
1 parent 081b6dd commit 664b33a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/PromiseRouter.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,9 @@ function makeExpressHandler(appId, promiseHandler) {
159159
let config = AppCache.get(appId);
160160
return function(req, res, next) {
161161
try {
162+
let url;
162163
if (process.env.VERBOSE) {
163-
let url = maskSensitiveUrl(req);
164+
url = maskSensitiveUrl(req);
164165
let body = maskSensitiveBody(req);
165166
let stringifiedBody = JSON.stringify(body, null, 2);
166167
log.verbose(`REQUEST for [${req.method}] ${url}: ${stringifiedBody}`, {

0 commit comments

Comments
 (0)