mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Rewritten minLogLevel feature
This commit is contained in:
@@ -360,7 +360,7 @@ async function regenerateCorruptedIndexErrorHandler(req, res, error) {
|
||||
|
||||
if (exists) {
|
||||
const path = index.folderPath;
|
||||
console.error(`Corrupted index detected at ${path}, regenerating...`);
|
||||
console.warn(`Corrupted index detected at ${path}, regenerating...`);
|
||||
await index.deleteIndex();
|
||||
return res.redirect(307, req.originalUrl + '?regenerated=true');
|
||||
}
|
||||
@@ -474,7 +474,7 @@ router.post('/purge-all', jsonParser, async (req, res) => {
|
||||
continue;
|
||||
}
|
||||
await fs.promises.rm(sourcePath, { recursive: true });
|
||||
console.log(`Deleted vector source store at ${sourcePath}`);
|
||||
console.info(`Deleted vector source store at ${sourcePath}`);
|
||||
}
|
||||
|
||||
return res.sendStatus(200);
|
||||
@@ -498,7 +498,7 @@ router.post('/purge', jsonParser, async (req, res) => {
|
||||
continue;
|
||||
}
|
||||
await fs.promises.rm(sourcePath, { recursive: true });
|
||||
console.log(`Deleted vector index at ${sourcePath}`);
|
||||
console.info(`Deleted vector index at ${sourcePath}`);
|
||||
}
|
||||
|
||||
return res.sendStatus(200);
|
||||
|
Reference in New Issue
Block a user