refactor: 重构部署功能

This commit is contained in:
2026-01-08 19:50:58 +08:00
parent a067d167e9
commit db2b2af0d3
13 changed files with 79 additions and 97 deletions

View File

@@ -54,7 +54,7 @@ export class PipelineController {
const templates = await getAvailableTemplates();
return templates;
} catch (error) {
console.error('Failed to get templates:', error);
log.error('pipeline', 'Failed to get templates:', error);
throw new BusinessError('获取模板失败', 3002, 500);
}
}
@@ -154,7 +154,7 @@ export class PipelineController {
log.info('pipeline', 'Created pipeline from template: %s', pipeline.name);
return pipeline;
} catch (error) {
console.error('Failed to create pipeline from template:', error);
log.error('pipeline', 'Failed to create pipeline from template:', error);
if (error instanceof BusinessError) {
throw error;
}