fix: log messages

This commit is contained in:
karishmas6
2024-09-11 16:52:56 +05:30
parent d2aea597b8
commit 003fc61777

View File

@@ -65,7 +65,7 @@ async function runWorkflow(fileName: string, runId: string) {
duration: '',
task: '', // Optionally set based on workflow
browserId: browserId,
interpreterSettings: {}, // Placeholder for any settings needed
interpreterSettings: { maxConcurrency: 1, maxRepeats: 1, debug: true },
log: '',
runId: runId,
};
@@ -80,7 +80,7 @@ async function runWorkflow(fileName: string, runId: string) {
);
// Log creation of the run
logger.log('debug', `Created run with name: ${fileName}_${runId}.json`);
logger.log('debug', `Scheduled run with name: ${fileName}.json`);
return {
browserId: browserId,
@@ -88,7 +88,8 @@ async function runWorkflow(fileName: string, runId: string) {
};
} catch (e) {
const { message } = e as Error;
logger.log('info', `Error while creating a run with name: ${fileName}_${runId}.json`);
logger.log('info', `Error while scheduling a run with name: ${fileName}.json`);
console.log(message)
return false;
}
}