Skip to content

Commit a37e734

Browse files
committed
avoid using undefined variable in error handling
1 parent a2bbced commit a37e734

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/bridges.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ HttpToAmqpBridge.prototype.request = function (request, response) {
168168
console.error(error);
169169
response.statusCode = 500;
170170
response.end(error.toString());
171-
metrics.http_ingress_request(self.metrics, client_ip(request.socket), request.method, response.statusCode, site, message_out.body ? message_out.body.length : 0, error.toString().length, elapsed(start));
171+
metrics.http_ingress_request(self.metrics, client_ip(request.socket), request.method, response.statusCode, undefined, message_out.body ? message_out.body.length : 0, error.toString().length, elapsed(start));
172172
});
173173
});
174174
};

0 commit comments

Comments
 (0)