fix: log messages
This commit is contained in:
@@ -65,7 +65,7 @@ async function runWorkflow(fileName: string, runId: string) {
|
|||||||
duration: '',
|
duration: '',
|
||||||
task: '', // Optionally set based on workflow
|
task: '', // Optionally set based on workflow
|
||||||
browserId: browserId,
|
browserId: browserId,
|
||||||
interpreterSettings: {}, // Placeholder for any settings needed
|
interpreterSettings: { maxConcurrency: 1, maxRepeats: 1, debug: true },
|
||||||
log: '',
|
log: '',
|
||||||
runId: runId,
|
runId: runId,
|
||||||
};
|
};
|
||||||
@@ -80,7 +80,7 @@ async function runWorkflow(fileName: string, runId: string) {
|
|||||||
);
|
);
|
||||||
|
|
||||||
// Log creation of the run
|
// 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 {
|
return {
|
||||||
browserId: browserId,
|
browserId: browserId,
|
||||||
@@ -88,7 +88,8 @@ async function runWorkflow(fileName: string, runId: string) {
|
|||||||
};
|
};
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
const { message } = e as Error;
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user