From 3f5c30bae9344b07d368ab6fba7ceb51ef512d06 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Fri, 29 Nov 2024 22:13:45 +0530 Subject: [PATCH] feat: log robot scheduled run error --- server/src/workflow-management/scheduler/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/workflow-management/scheduler/index.ts b/server/src/workflow-management/scheduler/index.ts index 082fcf2e..02ca905f 100644 --- a/server/src/workflow-management/scheduler/index.ts +++ b/server/src/workflow-management/scheduler/index.ts @@ -171,7 +171,7 @@ async function executeRun(id: string) { processGoogleSheetUpdates(); return true; } catch (error: any) { - logger.log('info', `Error while running a recording with id: ${id} - ${error.message}`); + logger.log('info', `Error while running a robot with id: ${id} - ${error.message}`); console.log(error.message); const run = await Run.findOne({ where: { runId: id } }); if (run) { @@ -232,7 +232,7 @@ export async function handleRunRecording(id: string, userId: string) { socket.on('ready-for-run', () => readyForRunHandler(browserId, newRunId)); - logger.log('info', `Running recording: ${id}`); + logger.log('info', `Running robot: ${id}`); socket.on('disconnect', () => { cleanupSocketListeners(socket, browserId, newRunId);