Skip to content

Commit 5ce5d4b

Browse files
committed
feat: Remove debug logging from add-node, execution-engine, and PortPluginRegistry files
1 parent 4908894 commit 5ce5d4b

3 files changed

Lines changed: 4 additions & 11 deletions

File tree

packages/chaingraph-trpc/server/procedures/flow/add-node.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,6 @@ export const addNode = flowContextProcedure
7171
// Set position
7272
node.setPosition(position, true)
7373

74-
console.debug(`[FLOW] Added node ${node.id} to flow ${flowId}`)
75-
7674
const createdNode = flow.addNode(node)
7775
await ctx.flowStore.updateFlow(flow as Flow)
7876

packages/chaingraph-types/src/flow/execution-engine.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -250,11 +250,10 @@ export class ExecutionEngine {
250250
}
251251
}
252252

253-
//
254-
console.log(`[ExecutionEngine] Debug state:
255-
- Dependencies: ${JSON.stringify(Object.fromEntries(this.nodeDependencies), null, 2)}
256-
- Dependents: ${JSON.stringify(Array.from(this.dependentsMap.entries()).map(([id, nodes]) => [id, nodes.map(n => n.id)]), null, 2)}
257-
- Executing nodes: ${JSON.stringify(Array.from(this.executingNodes))}`)
253+
// console.log(`[ExecutionEngine] Debug state:
254+
// - Dependencies: ${JSON.stringify(Object.fromEntries(this.nodeDependencies), null, 2)}
255+
// - Dependents: ${JSON.stringify(Array.from(this.dependentsMap.entries()).map(([id, nodes]) => [id, nodes.map(n => n.id)]), null, 2)}
256+
// - Executing nodes: ${JSON.stringify(Array.from(this.executingNodes))}`)
258257
}
259258

260259
private startWorkers(): Promise<void>[] {

packages/chaingraph-types/src/port/plugins/PortPluginRegistry.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,6 @@ export class PortPluginRegistry {
133133
getValueUnionSchema(): z.ZodType<IPortValue> {
134134
const plugins = this.getAllPlugins()
135135

136-
console.debug(`[getValueUnionSchema] Registered plugins: ${plugins.map(p => p.typeIdentifier).join(', ')}`)
137-
138136
const schemas = plugins
139137
.filter(plugin => plugin && plugin.valueSchema)
140138
.map((plugin) => {
@@ -151,8 +149,6 @@ export class PortPluginRegistry {
151149
// add null and undefined schemas
152150
schemas.push(z.null(), z.undefined())
153151

154-
console.debug(`[getValueUnionSchema] Value schemas: ${schemas.map(s => s.toString()).join(', ')}`)
155-
156152
return buildUnion(schemas, defaultValueSchema)
157153
}
158154

0 commit comments

Comments
 (0)