Skip to content

Commit

Permalink
ignore all http errors
Browse files Browse the repository at this point in the history
  • Loading branch information
seiyria committed Aug 29, 2023
1 parent 344cb72 commit a7ade5d
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions server/src/utils/http-exception.filter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ import * as Rollbar from 'rollbar';
export class HttpExceptionFilter implements ExceptionFilter {
private rollbar: Rollbar;

private readonly ignoredStatus = [404];

constructor(@Inject(ROLLBAR_CONFIG) private rollbarConfig) {
this.rollbar = new Rollbar(this.rollbarConfig);
}
Expand All @@ -26,10 +24,6 @@ export class HttpExceptionFilter implements ExceptionFilter {
const request = ctx.getRequest<Request>();
const status = exception.getStatus();

if (this.rollbar && !this.ignoredStatus.includes(status)) {
this.rollbar.error(exception);
}

response.status(status).json({
statusCode: status,
timestamp: new Date().toISOString(),
Expand Down

0 comments on commit a7ade5d

Please sign in to comment.