Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add telemetry timeout, remove debug log #745

Merged
merged 1 commit into from
Jun 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cortex-js/src/infrastructure/constants/cortex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ export const CORTEX_ONNX_ENGINE_RELEASES_URL =
export const CUDA_DOWNLOAD_URL =
'https://catalog.jan.ai/dist/cuda-dependencies/<version>/<platform>/cuda.tar.gz';

export const telemetryServerUrl = 'http://192.168.100.30:1338/';
export const telemetryServerUrl = 'http://192.168.100.30:1338';
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export class TelemetryRepositoryImpl implements TelemetryRepository {
'Content-Type': 'application/json',
'cortex-checksum': this.generateChecksum(telemetry.event),
},
timeout: 1000,
},
);
} catch (error) {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ export class FileManagerService {

return await readPreviousChunk();
} catch (err) {
console.error('Error reading last line:', err);
//todo: add log level then log error
throw err;
}
}
Expand All @@ -162,7 +162,7 @@ export class FileManagerService {
await writeAsync(fd, buffer, 0, buffer.length, position);
await closeAsync(fd);
} catch (err) {
console.error('Error modifying last line:', err);
//todo: add log level then log error
throw err;
}
}
Expand All @@ -179,7 +179,6 @@ export class FileManagerService {
},
);
} catch (err) {
console.error('Error appending to file:', err);
throw err;
}
}
Expand Down
Loading