From 7888a0aa6e7a41ad02c7f00c9d9892aa5618452f Mon Sep 17 00:00:00 2001 From: E44 <129310925+programmer-44@users.noreply.github.com> Date: Sat, 8 Nov 2025 22:18:10 +0100 Subject: [PATCH] improve logging --- control/frontend/src/ts/stores/displays.ts | 2 -- control/frontend/src/ts/stores/files.ts | 4 +--- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/control/frontend/src/ts/stores/displays.ts b/control/frontend/src/ts/stores/displays.ts index c2eafb3..bc0e30c 100644 --- a/control/frontend/src/ts/stores/displays.ts +++ b/control/frontend/src/ts/stores/displays.ts @@ -32,7 +32,6 @@ export async function edit_display_data(display_id: string, ip: string, mac: str } export function remove_display(display_id: string) { - console.log(display_id); displays.update((displays: DisplayGroup[]) => { displays = displays.map(display_group => ({ ...display_group, @@ -118,7 +117,6 @@ export async function update_screenshot(display_id: string, check_type: "first_c const old_blob = await fetch(display.preview_url).then(r => r.blob()); const new_hash = await image_content_hash(new_blob); const old_hash = await image_content_hash(old_blob); - console.log(old_hash, new_hash); update_needed = old_hash !== new_hash; // if different -> update } } diff --git a/control/frontend/src/ts/stores/files.ts b/control/frontend/src/ts/stores/files.ts index 260964a..f703790 100644 --- a/control/frontend/src/ts/stores/files.ts +++ b/control/frontend/src/ts/stores/files.ts @@ -33,11 +33,10 @@ export async function change_file_path(new_path: string) { for (const display_group of get(displays)) { for (const display of display_group.data) { const changed_paths = await get_changed_directory_paths(display, new_path); - console.log(changed_paths) if (!changed_paths) continue; + console.log("Update file system from", display.name, ":", changed_paths); for (const path of changed_paths) { update_folder_elements_recursively(display, path); - console.log(path, "updated") } } } @@ -70,7 +69,6 @@ async function get_changed_directory_paths(display: Display, file_path: string): const current_folder = await get_file_tree_data(display.ip, file_path); if (current_folder === null) return null; const directory_strings = get_recursive_changed_directory_paths(display, file_path, current_folder, get(all_files)); - console.log(directory_strings); if (directory_strings.size === 0) return null; const directory_strings_array = [...directory_strings]; return directory_strings_array.filter((e) => (!directory_strings_array.some((f) => (f !== e && f.startsWith(e)))));