Skip to content

Commit e25b326

Browse files
committed
Don't report 504 as error to New Relic
504 is essentially ImgFlo's 404, so it shouldn't be sent to New Relic as an error in order to prevent false alarms.
1 parent e0f037e commit e25b326

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

newrelic.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,11 @@ exports.config = {
2121
*/
2222
level : 'info'
2323
}
24+
/**
25+
* Don't report certain types of failures as errors
26+
*/
27+
error_collector : {
28+
enabled : true,
29+
ignore_status_codes : [404,504]
30+
}
2431
};

0 commit comments

Comments
 (0)