Sentry logs
This commit is contained in:
parent
55d953c14f
commit
e060adbdd4
@ -11,6 +11,7 @@ import { EOfficeStatus } from "@prisma/client";
|
||||
import OfficeRolesService from "@Services/super-admin/OfficeRolesService/OfficeRolesService";
|
||||
import DeedTypesService from "@Services/super-admin/DeedTypesService/DeedTypesService";
|
||||
import DocumentTypesService from "@Services/super-admin/DocumentTypesService/DocumentTypesService";
|
||||
import * as Sentry from "@sentry/node";
|
||||
|
||||
interface IIdNotToken {
|
||||
access_token: string;
|
||||
@ -385,6 +386,7 @@ export default class IdNotService extends BaseService {
|
||||
console.log("userData", userData);
|
||||
} catch (error) {
|
||||
console.error("Error fetching " + `${this.variables.IDNOT_API_BASE_URL}/api/pp/v2/rattachements/${decodedToken.profile_idn}?`, error);
|
||||
Sentry.captureException(error);
|
||||
return null;
|
||||
}
|
||||
|
||||
@ -401,6 +403,7 @@ export default class IdNotService extends BaseService {
|
||||
).json()) as IOfficeLocation;
|
||||
} catch (error) {
|
||||
console.error("Error fetching" + `${this.variables.IDNOT_API_BASE_URL + userData.entite.locationsUrl}` , error);
|
||||
Sentry.captureException(error);
|
||||
return null;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user