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:
parent
aad557fefc
commit
4020c8ff1a
1 changed files with 5 additions and 1 deletions
|
@ -102,7 +102,11 @@ export const startWatch = async (
|
||||||
if (!ext || !extensions.has(ext)) {
|
if (!ext || !extensions.has(ext)) {
|
||||||
return;
|
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);
|
pathsBatcher.add(path);
|
||||||
};
|
};
|
||||||
const fsWatcher = watchFs(paths, {
|
const fsWatcher = watchFs(paths, {
|
||||||
|
|
Loading…
Add table
Reference in a new issue