fix: logger输出

This commit is contained in:
bietiaop 2024-07-31 17:21:57 +08:00
parent 8a420e8fe1
commit 14b528b87b
3 changed files with 3 additions and 4 deletions

View file

@ -118,7 +118,7 @@ export class Panel extends ZZZPlugin {
}); });
result.forEach(item => { result.forEach(item => {
logger.debug(item.proficiency_score, item); logger.debug(item.name_mi18n, item.proficiency_score);
}); });
const finalData = { const finalData = {

View file

@ -20,7 +20,7 @@ export function getDB(dbName, dbFile) {
const dbPath = path.join(dbFolder, `${dbFile}.json`); const dbPath = path.join(dbFolder, `${dbFile}.json`);
return JSON.parse(readFileSync(dbPath, 'utf-8')); return JSON.parse(readFileSync(dbPath, 'utf-8'));
} catch (error) { } catch (error) {
logger.mark(`读取数据库失败: ${error.message}`); logger.debug(`读取数据库失败: ${error.message}`);
return null; return null;
} }
} }
@ -39,7 +39,7 @@ export function setDB(dbName, dbFile, data) {
const dbPath = path.join(dbFolder, `${dbFile}.json`); const dbPath = path.join(dbFolder, `${dbFile}.json`);
writeFileSync(dbPath, JSON.stringify(data, null, 2)); writeFileSync(dbPath, JSON.stringify(data, null, 2));
} catch (error) { } catch (error) {
logger.mark(`读取数据库失败: ${error.message}`); logger.debug(`读取数据库失败: ${error.message}`);
} }
} }

View file

@ -210,7 +210,6 @@ export class ZZZAvatarInfo {
ranks, ranks,
isNew, isNew,
} = data; } = data;
logger.debug('ZZZAvatarInfo', data);
/** @type {number} */ /** @type {number} */
this.id = id; this.id = id;
/** @type {number} */ /** @type {number} */