Skip to content

OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.

remove logging

Carl-Gerhard Lindesvärde1f37b439ec7
diff --git a/apps/web/src/server/auth.ts b/apps/web/src/server/auth.ts
index 3c555153f..ae7e2d15b 100644
--- a/apps/web/src/server/auth.ts
+++ b/apps/web/src/server/auth.ts
@@ -105,12 +105,6 @@ export async function validateSdkRequest(req: NextApiRequest): Promise<string> {
const clientId = req?.headers['mixan-client-id'] as string | undefined;
const clientSecret = req.headers['mixan-client-secret'] as string | undefined;
- console.log('clientId',clientId);
- console.log('clientSecret',clientSecret);
- console.log(JSON.stringify(req.headers, null, 2));
-
-
-
if (!clientId) {
throw createError(401, 'Misisng client id');
}
diff --git a/apps/web/src/server/exceptions.ts b/apps/web/src/server/exceptions.ts
index a1d4895b5..1dac1bfcf 100644
--- a/apps/web/src/server/exceptions.ts
+++ b/apps/web/src/server/exceptions.ts
@@ -30,8 +30,6 @@ export function createIssues(arr: Array<MixanIssue>) {
}
export function createError(status = 500, error: unknown) {
- console.log('create error', error);
-
if (error instanceof Error || typeof error === 'string') {
return new HttpError(status, error);
}