Skip to content

Commit e1ffedb

Browse files
committed
Implement log control.
1 parent 53c1f63 commit e1ffedb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ChatClient.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,7 @@ export class ChatClient extends BaseManager {
398398
public async init(options: ChatOptions): Promise<void> {
399399
chatlog.log(`${ChatClient.TAG}: init: `, options);
400400
this._options = options;
401+
chatlog.enableLog = options.debugModel ?? false;
401402
const r = await Native._callMethod(MTinit, { options });
402403
ChatClient.checkErrorFromResult(r);
403404
this._isInit = true;

0 commit comments

Comments
 (0)