Skip to content

Commit 60ab16f

Browse files
committed
remove log with all projects
1 parent 87e40b4 commit 60ab16f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

patch-nx-debug.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ const originalPattern = /function getTargetConfigurationForTask\(task, projectGr
4343
const replacement = `function getTargetConfigurationForTask(task, projectGraph) {
4444
// SPRING_BOOT_DEBUG: Log task details before potential error
4545
console.log('🎯 SPRING_BOOT_DEBUG: Processing target:', task.target.target, 'for project:', task.target.project);
46-
console.log('🎯 SPRING_BOOT_DEBUG: Available projects in projectGraph.nodes:', Object.keys(projectGraph?.nodes || {}));
4746
4847
if (!projectGraph?.nodes?.[task.target.project]) {
4948
console.log('❌ SPRING_BOOT_DEBUG: Project not found in projectGraph.nodes:', task.target.project);
@@ -70,7 +69,6 @@ if (originalPattern.test(content)) {
7069
pattern: /const project = projectGraph\.nodes\[task\.target\.project\]\.data;/,
7170
replacement: `// SPRING_BOOT_DEBUG: Log task details before potential error
7271
console.log('🎯 SPRING_BOOT_DEBUG: Processing target:', task.target.target, 'for project:', task.target.project);
73-
console.log('🎯 SPRING_BOOT_DEBUG: Available projects in projectGraph.nodes:', Object.keys(projectGraph?.nodes || {}));
7472
7573
if (!projectGraph?.nodes?.[task.target.project]) {
7674
console.log('❌ SPRING_BOOT_DEBUG: Project not found in projectGraph.nodes:', task.target.project);
@@ -84,7 +82,7 @@ if (originalPattern.test(content)) {
8482
// Even simpler - just add logging before the line
8583
{
8684
pattern: /(const project = projectGraph\.nodes\[task\.target\.project\]\.data;)/,
87-
replacement: `console.log('🎯 SPRING_BOOT_DEBUG: Processing target:', task.target.target, 'for project:', task.target.project, '- Available projects:', Object.keys(projectGraph?.nodes || {}));
85+
replacement: `console.log('🎯 SPRING_BOOT_DEBUG: Processing target:', task.target.target, 'for project:', task.target.project);
8886
$1`,
8987
name: 'minimal pattern'
9088
}

0 commit comments

Comments
 (0)