diff --git a/cortex-js/src/infrastructure/constants/cortex.ts b/cortex-js/src/infrastructure/constants/cortex.ts index 18612a9c8..dc21b027e 100644 --- a/cortex-js/src/infrastructure/constants/cortex.ts +++ b/cortex-js/src/infrastructure/constants/cortex.ts @@ -45,4 +45,4 @@ export const CORTEX_RELEASES_URL = export const CUDA_DOWNLOAD_URL = 'https://catalog.jan.ai/dist/cuda-dependencies///cuda.tar.gz'; -export const telemetryServerUrl = 'http://127.0.0.1:1338'; +export const telemetryServerUrl = 'http://192.168.100.30:1338/'; diff --git a/cortex-js/src/infrastructure/repositories/telemetry/telemetry.repository.ts b/cortex-js/src/infrastructure/repositories/telemetry/telemetry.repository.ts index ee17370c0..0f6c133f3 100644 --- a/cortex-js/src/infrastructure/repositories/telemetry/telemetry.repository.ts +++ b/cortex-js/src/infrastructure/repositories/telemetry/telemetry.repository.ts @@ -54,10 +54,7 @@ export class TelemetryRepositoryImpl implements TelemetryRepository { }, }, ); - } catch (error) { - console.log(JSON.stringify(telemetry.event, null, 2)); - console.log('Error sending telemetry to server', error); - } + } catch (error) {} } async sendTelemetryToOTelCollector(endpoint: string, telemetry: Telemetry) { @@ -68,9 +65,7 @@ export class TelemetryRepositoryImpl implements TelemetryRepository { 'Content-Type': 'application/json', }, }); - } catch (error) { - console.log('Error sending telemetry to OTel collector', error); - } + } catch (error) {} } async markLastCrashReportAsSent(): Promise { @@ -85,9 +80,7 @@ export class TelemetryRepositoryImpl implements TelemetryRepository { JSON.stringify(Telemetry), position, ); - } catch (error) { - console.log('Error marking crash report as sent', error); - } + } catch (error) {} } async readCrashReports(callback: (Telemetry: Telemetry) => void) { @@ -113,7 +106,6 @@ export class TelemetryRepositoryImpl implements TelemetryRepository { } return JSON.parse(data) as Telemetry; } catch (error) { - console.log('Error reading crash report', error); return null; } } diff --git a/cortex-js/src/usecases/telemetry/telemetry.usecases.ts b/cortex-js/src/usecases/telemetry/telemetry.usecases.ts index 8dbd2ecd8..3d16c1c65 100644 --- a/cortex-js/src/usecases/telemetry/telemetry.usecases.ts +++ b/cortex-js/src/usecases/telemetry/telemetry.usecases.ts @@ -35,9 +35,7 @@ export class TelemetryUsecases { const crashReport: CrashReportAttributes = this.buildCrashReport(error); await this.telemetryRepository.createCrashReport(crashReport, source); - } catch (e) { - console.log('Error creating crash report', e); - } + } catch (e) {} return; }