0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-02-18 01:24:26 -05:00

feat(cli): disable onFile logs when progress bar is enabled

This commit is contained in:
Eli Gao 2025-01-23 14:31:24 +08:00
parent aad557fefc
commit 4020c8ff1a

View file

@ -102,7 +102,11 @@ export const startWatch = async (
if (!ext || !extensions.has(ext)) {
return;
}
console.log(`Change detected: ${path}`);
if (!options.progress) {
// logging when progress is disabled as it can cause issues with the progress bar rendering
console.log(`Change detected: ${path}`);
}
pathsBatcher.add(path);
};
const fsWatcher = watchFs(paths, {