refactor: logger bind (#577)
This commit is contained in:
1 parent
97cacb4383
commit
53c1d40bcf
19 files changed
+109
-117
No files matched your search
@@ -27,7 +27,7 @@ export class NTQQGroupApi {
|
||||
this.core = core;
|
||||
}
|
||||
async initApi() {
|
||||
this.initCache().then().catch(this.context.logger.logError.bind(this.context.logger));
|
||||
this.initCache().then().catch(e => this.context.logger.logError(e));
|
||||
}
|
||||
async initCache() {
|
||||
this.groups = await this.getGroups();
|
||||
|
||||
Reference in new issue
Block a user