Skip to content

Commit

Permalink
fix: add telemetry timeout, remove debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
marknguyen1302 authored Jun 21, 2024
1 parent 854f231 commit 9d88d3b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
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

0 comments on commit 9d88d3b

Please sign in to comment.