mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 21:27:47 +00:00
fix: logger输出
This commit is contained in:
parent
8a420e8fe1
commit
14b528b87b
3 changed files with 3 additions and 4 deletions
|
|
@ -20,7 +20,7 @@ export function getDB(dbName, dbFile) {
|
|||
const dbPath = path.join(dbFolder, `${dbFile}.json`);
|
||||
return JSON.parse(readFileSync(dbPath, 'utf-8'));
|
||||
} catch (error) {
|
||||
logger.mark(`读取数据库失败: ${error.message}`);
|
||||
logger.debug(`读取数据库失败: ${error.message}`);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
@ -39,7 +39,7 @@ export function setDB(dbName, dbFile, data) {
|
|||
const dbPath = path.join(dbFolder, `${dbFile}.json`);
|
||||
writeFileSync(dbPath, JSON.stringify(data, null, 2));
|
||||
} catch (error) {
|
||||
logger.mark(`读取数据库失败: ${error.message}`);
|
||||
logger.debug(`读取数据库失败: ${error.message}`);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue