forked from Cutlery/immich
remove logging
This commit is contained in:
parent
17f2adb2db
commit
0348372692
@ -631,16 +631,11 @@ export class LibraryService extends EventEmitter {
|
|||||||
this.logger.log(`Refreshing library: ${job.id}`);
|
this.logger.log(`Refreshing library: ${job.id}`);
|
||||||
|
|
||||||
const validImportPaths: string[] = [];
|
const validImportPaths: string[] = [];
|
||||||
console.warn('importPaths', library.importPaths);
|
|
||||||
console.warn('importPaths', library.importPaths[0]);
|
|
||||||
|
|
||||||
for (const importPath of library.importPaths) {
|
for (const importPath of library.importPaths) {
|
||||||
console.warn('importPath', importPath);
|
|
||||||
|
|
||||||
const validation = await this.validateImportPath(importPath);
|
const validation = await this.validateImportPath(importPath);
|
||||||
if (validation.isValid) {
|
if (validation.isValid) {
|
||||||
validImportPaths.push(path.normalize(importPath));
|
validImportPaths.push(path.normalize(importPath));
|
||||||
console.warn('validImportPaths', importPath);
|
|
||||||
} else {
|
} else {
|
||||||
this.logger.error(`Skipping invalid import path: ${importPath}. Reason: ${validation.message}`);
|
this.logger.error(`Skipping invalid import path: ${importPath}. Reason: ${validation.message}`);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user