mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-21 10:50:14 +01:00
refactor: Remove redundant debug logging in GenerationJobManager and RedisEventTransport
- Eliminated unnecessary debug statements in GenerationJobManager related to subscriber actions and job updates, enhancing log clarity. - Removed debug logging in RedisEventTransport for subscription and subscriber disconnection events, streamlining the logging output. - Cleaned up debug messages in RedisJobStore to focus on essential information, improving overall logging efficiency.
This commit is contained in:
parent
0fa06af7b9
commit
5b01910d6e
3 changed files with 2 additions and 16 deletions
|
|
@ -267,8 +267,6 @@ export class RedisJobStore implements IJobStore {
|
|||
*/
|
||||
async getContentParts(streamId: string): Promise<Agents.MessageContentComplex[] | null> {
|
||||
const chunks = await this.getChunks(streamId);
|
||||
logger.debug(`[RedisJobStore] getContentParts: ${streamId} has ${chunks.length} chunks`);
|
||||
|
||||
if (chunks.length === 0) {
|
||||
return null;
|
||||
}
|
||||
|
|
@ -314,13 +312,10 @@ export class RedisJobStore implements IJobStore {
|
|||
const key = KEYS.runSteps(streamId);
|
||||
const data = await this.redis.get(key);
|
||||
if (!data) {
|
||||
logger.debug(`[RedisJobStore] getRunSteps: ${streamId} has no run steps`);
|
||||
return [];
|
||||
}
|
||||
try {
|
||||
const runSteps = JSON.parse(data);
|
||||
logger.debug(`[RedisJobStore] getRunSteps: ${streamId} has ${runSteps.length} run steps`);
|
||||
return runSteps;
|
||||
return JSON.parse(data);
|
||||
} catch {
|
||||
return [];
|
||||
}
|
||||
|
|
@ -352,8 +347,6 @@ export class RedisJobStore implements IJobStore {
|
|||
*/
|
||||
async appendChunk(streamId: string, event: unknown): Promise<void> {
|
||||
const key = KEYS.chunks(streamId);
|
||||
const eventObj = event as { event?: string };
|
||||
logger.debug(`[RedisJobStore] appendChunk: ${streamId} event=${eventObj.event}`);
|
||||
await this.redis.xadd(key, '*', 'event', JSON.stringify(event));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue