chore: 移除废弃日志

This commit is contained in:
手瓜一十雪 2024-08-11 13:55:46 +08:00
parent a3ee8672ed
commit c84c1f2e96
4 changed files with 8 additions and 8 deletions

View File

@ -22,7 +22,7 @@ export class LimitedHashTable<K, V> {
this.keyToValue.set(key, value);
this.valueToKey.set(value, key);
while (this.keyToValue.size !== this.valueToKey.size) {
console.log('keyToValue.size !== valueToKey.size Error Atom');
//console.log('keyToValue.size !== valueToKey.size Error Atom');
this.keyToValue.clear();
this.valueToKey.clear();
}

View File

@ -80,7 +80,7 @@ export class NapCatCore {
async initNapCatCoreListeners() {
const msgListener = new MsgListener();
msgListener.onRecvMsg = (msg) => {
console.log('RecvMsg', msg);
//console.log('RecvMsg', msg);
};
//await sleep(2500);
this.context.session.getMsgService().addKernelMsgListener(

View File

@ -85,7 +85,7 @@ export class NapCatOneBot11Adapter {
await this.networkManager.registerAllActions(actions);
await this.networkManager.openAllAdapters();
await this.initMsgListener();
//未对shell版本兼容
// 未对shell版本兼容
// Mlikiowa V2.0.0 Refactor Todo
WebUiDataRuntime.setQQLoginUin(selfInfo.uin.toString());
WebUiDataRuntime.setQQLoginStatus(true);

View File

@ -32,14 +32,14 @@ export class OB11NetworkManager {
}
async emitEvent(event: OB11EmitEventContent) {
console.log('adapters', this.adapters.length);
//console.log('adapters', this.adapters.length);
return Promise.all(this.adapters.map(adapter => adapter.onEvent(event)));
}
async registerAdapter(adapter: IOB11NetworkAdapter) {
console.log('Registering adapter:', adapter);
//console.log('Registering adapter:', adapter);
this.adapters.push(adapter);
console.log('Current adapters:', this.adapters.length);
//console.log('Current adapters:', this.adapters.length);
}
async closeSomeAdapters(adapters: IOB11NetworkAdapter[]) {
@ -48,10 +48,10 @@ export class OB11NetworkManager {
}
async closeAllAdapters() {
console.log('Closing all adapters');
//console.log('Closing all adapters');
await Promise.all(this.adapters.map(adapter => adapter.close()));
this.adapters = [];
console.log('All adapters closed. Current adapters:', this.adapters.length);
//console.log('All adapters closed. Current adapters:', this.adapters.length);
}
}