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
|
|
@ -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 = {
|
||||||
|
|
|
||||||
|
|
@ -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}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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} */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue