We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f73786f commit 8df4a50Copy full SHA for 8df4a50
lib/errorparser.js
@@ -47,8 +47,8 @@ ErrorParser.prototype = {
47
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
48
}
49
50
-
51
- var req = http.request( postRequest, function( res ) {
+ if((Date.now() - except.createdat) / 1000 > 60) {
+ var req = http.request( postRequest, function( res ) {
52
53
res.statusCode;
54
var buffer = "";
@@ -63,14 +63,15 @@ ErrorParser.prototype = {
63
64
} );
65
66
- });
67
- if((Date.now() - except.completedAt) / 1000 > 60) {
+ });
+
68
req.write(except.data);
69
- } else {
70
+ req.end();
71
+ } else {
72
that.logger.log("exception too old, ignoring.");
73
that.statsdClient.increment("errbit.proxy.delivery.ignore");
74
- req.end();
75
76
};
77
0 commit comments