remove logging

This commit is contained in:
Carl-Gerhard Lindesvärd
2023-11-02 15:32:05 +01:00
parent c64e33bbad
commit e1f37b439e
2 changed files with 0 additions and 8 deletions

View File

@@ -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');
}

View File

@@ -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);
}