Skip to content

Commit

Permalink
fix: error
Browse files Browse the repository at this point in the history
  • Loading branch information
adisreyaj committed Apr 10, 2024
1 parent 95a01fb commit 9d28949
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/api/src/app/core/utils/logger.service.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Injectable, Logger, Module } from '@nestjs/common';

@Injectable()
export class CompitoLoggerService {
// constructor(@InjectSentry() private readonly client: SentryService) {}
Expand All @@ -13,7 +14,7 @@ export class CompitoLoggerService {
error = (logger: Logger) => (operation: string, message: string, error?: Error) => {
// if (error) this.client.instance().captureException(error);
// else this.client.instance().captureMessage(`${operation.toUpperCase()} --> ${message}`, Severity.Error);
return logger.error(`${operation.toUpperCase()} --> ${message}`, error.stack);
return logger.error(`${operation.toUpperCase()} --> ${message}`, error);
};
}

Expand Down

0 comments on commit 9d28949

Please sign in to comment.