Skip to content

Commit a7021dc

Browse files
committed
Remove fallback patch logging in response processor
1 parent 85c7251 commit a7021dc

1 file changed

Lines changed: 0 additions & 24 deletions

File tree

‎apps/editor/src/commands/apply-response-command/response-processor.ts‎

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,6 @@ export const process_response = async (params: {
356356
original_states: OriginalFileState[]
357357
diff_application_method?: 'recount' | 'search_and_replace'
358358
}[] = []
359-
let any_patch_used_fallback = false
360359

361360
const total_patches = patches.length
362361

@@ -397,9 +396,6 @@ export const process_response = async (params: {
397396
diff_application_method: result.diff_application_method
398397
})
399398
}
400-
if (result.diff_application_method) {
401-
any_patch_used_fallback = true
402-
}
403399
} else {
404400
if (result.original_states) {
405401
for (const state of result.original_states) {
@@ -427,26 +423,6 @@ export const process_response = async (params: {
427423
}
428424

429425
if (all_original_states.length > 0) {
430-
if (any_patch_used_fallback) {
431-
;(async () => {
432-
const fallback_patches_count = applied_patches.filter(
433-
(p) => p.diff_application_method
434-
).length
435-
const fallback_files = applied_patches
436-
.filter((p) => p.diff_application_method)
437-
.map((p) => p.patch.file_path)
438-
439-
Logger.info({
440-
function_name: 'process_response',
441-
message: 'Patches applied with fallback method',
442-
data: {
443-
count: fallback_patches_count,
444-
total: total_patches,
445-
files: fallback_files
446-
}
447-
})
448-
})()
449-
}
450426
return {
451427
original_states: all_original_states,
452428
response: params.response

0 commit comments

Comments
 (0)