fix: 优化日志

This commit is contained in:
2026-01-08 21:39:52 +08:00
parent db2b2af0d3
commit 82da2a1a04
7 changed files with 49 additions and 89 deletions

View File

@@ -103,7 +103,10 @@ export async function initializePipelineTemplates(): Promise<void> {
log.info(TAG, `Created template: ${template.name}`);
}
} else {
log.info(TAG, 'Pipeline templates already exist, skipping initialization');
log.info(
TAG,
'Pipeline templates already exist, skipping initialization',
);
}
log.info(TAG, 'Pipeline templates initialization completed');
@@ -208,7 +211,10 @@ export async function createPipelineFromTemplate(
});
}
log.info(TAG, `Created pipeline from template ${templateId}: ${newPipeline.name}`);
log.info(
TAG,
`Created pipeline from template ${templateId}: ${newPipeline.name}`,
);
return newPipeline.id;
} catch (error) {
log.error(TAG, 'Failed to create pipeline from template:', error);