fix(plugin-workflow): fix logger api (#6036)

This commit is contained in:
Junyi 2025-01-10 19:42:29 +08:00 committed by GitHub
parent a3ae8032f4
commit 2efa3eddea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 6 deletions

View File

@ -143,19 +143,19 @@
"Node type": "节点类型",
"Unknown node": "未知节点",
"Node with unknown type will cause error. Please delete it or check plugin which provide this type.": "未知类型的节点会导致错误,请删除或检查提供该类型的插件。",
"Calculation": "算",
"Calculation engine": "算引擎",
"Calculation": "算",
"Calculation engine": "算引擎",
"Basic": "基础",
"Calculation expression": "算表达式",
"Calculation expression": "算表达式",
"Expression syntax error": "表达式语法错误",
"Syntax references: ": "语法参考:",
"Calculation result": "算结果",
"Calculation result": "算结果",
"True": "真",
"False": "假",
"concat": "连接",
"Condition": "条件判断",
"Based on boolean result of the calculation to determine whether to \"continue\" or \"exit\" the process, or continue on different branches of \"yes\" and \"no\".":
"基于算结果的真假来决定“继续”或“退出”流程,或者在“是”与“否”的分支上分别继续。",
"基于算结果的真假来决定“继续”或“退出”流程,或者在“是”与“否”的分支上分别继续。",
"Mode": "模式",
"Continue when \"Yes\"": "“是”则继续",
"Branch into \"Yes\" and \"No\"": "“是”和“否”分别继续",

View File

@ -139,7 +139,7 @@ export default class PluginWorkflowServer extends Plugin {
/**
* @experimental
*/
getLogger(workflowId: ID): Logger {
getLogger(workflowId: ID = 'dispatcher'): Logger {
const now = new Date();
const date = `${now.getFullYear()}-${`0${now.getMonth() + 1}`.slice(-2)}-${`0${now.getDate()}`.slice(-2)}`;
const key = `${date}-${workflowId}}`;