Skip to content

Commit 51aa43e

Browse files
oliviertassinarikamilogorek
authored andcommitted
ref: Use a named function for the middleware over an anonymous (#424)
It's making the investigation of performance issues easier.
1 parent e369343 commit 51aa43e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ extend(Raven.prototype, {
532532

533533
requestHandler: function() {
534534
var self = this;
535-
return function(req, res, next) {
535+
return function ravenMiddleware(req, res, next) {
536536
self.context({req: req}, function() {
537537
domain.active.add(req);
538538
domain.active.add(res);

0 commit comments

Comments
 (0)