judge: key check report

This commit is contained in:
undefined committed 2021-09-21 23:21:22 +08:00
1 parent cf4ef57f68
commit 132ef0312c
14 files changed
+38 -25

No files matched your search

+2 -2
View File
@@ -71,11 +71,11 @@ class Service {
async login() {
const login = await this.api.ensureLogin();
if (login) {
if (login === true) {
logger.info(`${this.account.type}/${this.account.handle}: logged in`);
return true;
}
logger.warn(`${this.account.type}/${this.account.handle}: login fail`);
logger.warn(`${this.account.type}/${this.account.handle}: login fail`, login || '');
return false;
}