Skip to content

Commit

Permalink
remove sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
n13 committed Oct 6, 2024
1 parent 0358c56 commit 3aacd97
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 22 deletions.
1 change: 0 additions & 1 deletion .github/workflows/pangea-testnet-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ env:
sendGridKey: ${{ secrets.SENDGRID_KEY }}
twilioAccountSid: ${{ secrets.TWILIO_ACCOUNT_SID }}
twilioAuthToken: ${{ secrets.TWILIO_AUTH_TOKEN }}
disableTwilio: true
eosHistoryEndpoint: ${{vars.HISTORY_ENDPOINT}}
eosHttpEndpoint: ${{vars.HTTP_ENDPOINT}}
authVerifier: TABLE
Expand Down
6 changes: 3 additions & 3 deletions get-chats.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import * as Sentry from '@sentry/node';
// import * as Sentry from '@sentry/node';
import { ResponseUtil } from './util';
import { ChatDao } from "./dao";
import { AuthApiFactory } from "./service";

Sentry.init({ dsn: process.env.sentryDsn });
// Sentry.init({ dsn: process.env.sentryDsn });

const chatDao = new ChatDao();

Expand Down Expand Up @@ -32,7 +32,7 @@ export async function main(event, context) {
});
} catch (e) {
console.error(e);
Sentry.captureException(e);
// Sentry.captureException(e);
return ResponseUtil.failure(e);
}
}
6 changes: 3 additions & 3 deletions get-messages.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import * as Sentry from '@sentry/node';
// import * as Sentry from '@sentry/node';
import { ResponseUtil } from './util';
import { MessageDao } from "./dao";
import { AuthApiFactory } from "./service";

Sentry.init({ dsn: process.env.sentryDsn });
// Sentry.init({ dsn: process.env.sentryDsn });
const messageDao = new MessageDao();

export async function main(event, context) {
Expand Down Expand Up @@ -34,7 +34,7 @@ export async function main(event, context) {
});
} catch (e) {
console.error(e);
Sentry.captureException(e);
// Sentry.captureException(e);
return ResponseUtil.failure(e);
}
}
6 changes: 3 additions & 3 deletions get-profile.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import * as Sentry from '@sentry/node';
// import * as Sentry from '@sentry/node';
import { ProfileFetchTypes } from "@hypha-dao/ppp-common";
import { ResponseUtil } from './util';
import { ProfileDao } from "./dao";
import { AuthApiFactory, OauthAuthApi } from "./service";
import { AccessTypes } from "./const";

Sentry.init({ dsn: process.env.sentryDsn });
// Sentry.init({ dsn: process.env.sentryDsn });

const profileDao = new ProfileDao();

Expand Down Expand Up @@ -39,7 +39,7 @@ export async function main(event, context) {
});
} catch (e) {
console.error(e);
Sentry.captureException(e);
// Sentry.captureException(e);
return ResponseUtil.failure(e);
}
}
6 changes: 3 additions & 3 deletions get-profiles.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import * as Sentry from '@sentry/node';
// import * as Sentry from '@sentry/node';
import { AppIds, ProfileFetchTypes } from "@hypha-dao/ppp-common";
import { ResponseUtil } from './util';
import { ProfileDao } from "./dao";
import { AuthApiFactory } from "./service";
import { AccessTypes } from "./const";

Sentry.init({ dsn: process.env.sentryDsn });
// Sentry.init({ dsn: process.env.sentryDsn });

const profileDao = new ProfileDao();

Expand Down Expand Up @@ -38,7 +38,7 @@ export async function main(event, context) {
return ResponseUtil.success({ status: true, profiles });
} catch (e) {
console.error(e);
Sentry.captureException(e);
// Sentry.captureException(e);
return ResponseUtil.failure(e);
}
}
6 changes: 3 additions & 3 deletions register.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import * as Sentry from '@sentry/node';
// import * as Sentry from '@sentry/node';
import { ProfileFetchTypes } from "@hypha-dao/ppp-common";
import { ResponseUtil } from './util';
import { ProfileDao } from "./dao";
import { Profile } from "./domain";
import { AuthApiFactory } from "./service";
import { AccessTypes } from "./const";

Sentry.init({ dsn: process.env.sentryDsn });
// Sentry.init({ dsn: process.env.sentryDsn });

const profileDao = new ProfileDao();

Expand Down Expand Up @@ -41,7 +41,7 @@ export async function main(event, context) {
});
} catch (e) {
console.error(e);
Sentry.captureException(e);
// Sentry.captureException(e);
return ResponseUtil.failure(e);
}
}
6 changes: 3 additions & 3 deletions search-profiles.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import * as Sentry from '@sentry/node';
// import * as Sentry from '@sentry/node';
import { AppIds, ProfileFetchTypes } from '@hypha-dao/ppp-common';
import { AuthApiFactory } from "./service";
import { ResponseUtil } from './util';
import { ProfileDao } from "./dao";

Sentry.init({ dsn: process.env.sentryDsn });
// Sentry.init({ dsn: process.env.sentryDsn });

const profileDao = new ProfileDao();

Expand Down Expand Up @@ -45,7 +45,7 @@ export async function main(event, context) {
});
} catch (e) {
console.error(e);
Sentry.captureException(e);
// Sentry.captureException(e);
return ResponseUtil.failure(e);
}
}
6 changes: 3 additions & 3 deletions send-msg.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import * as Sentry from '@sentry/node';
// import * as Sentry from '@sentry/node';
import { ResponseUtil } from './util';
import { ProfileDao, MessageDao } from "./dao";
import { AuthApiFactory, PrivateAuthApi } from "./service";
import { Message } from "./domain";

Sentry.init({ dsn: process.env.sentryDsn });
// Sentry.init({ dsn: process.env.sentryDsn });

const profileDao = new ProfileDao();
const messageDao = new MessageDao();
Expand Down Expand Up @@ -52,7 +52,7 @@ export async function main(event, context) {
return ResponseUtil.success({ status: true, message: `Message sent successfully.`, messageKey: messageKey });
} catch (e) {
console.error(JSON.stringify(e, null, 2));
Sentry.captureException(e);
// Sentry.captureException(e);
return ResponseUtil.failure(e);
}
}

0 comments on commit 3aacd97

Please sign in to comment.