orchestrix-yuri 4.1.1 → 4.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -21,16 +21,20 @@ class FeishuAdapter {
|
|
|
21
21
|
throw new Error('Feishu App ID and App Secret are required. Run: orchestrix-yuri start --feishu-id ID --feishu-secret SECRET');
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
+
// Suppress SDK's own info/warn logs — only show errors
|
|
25
|
+
const sdkLogOpts = { loggerLevel: lark.LoggerLevel.ERROR };
|
|
26
|
+
|
|
24
27
|
// REST API client (token auto-managed by SDK)
|
|
25
28
|
this.client = new lark.Client({
|
|
26
29
|
appId: this.appId,
|
|
27
30
|
appSecret: this.appSecret,
|
|
28
31
|
appType: lark.AppType.SelfBuild,
|
|
29
32
|
domain: lark.Domain.Feishu,
|
|
33
|
+
...sdkLogOpts,
|
|
30
34
|
});
|
|
31
35
|
|
|
32
36
|
// Event dispatcher — register message handler
|
|
33
|
-
const dispatcher = new lark.EventDispatcher(
|
|
37
|
+
const dispatcher = new lark.EventDispatcher(sdkLogOpts).register({
|
|
34
38
|
'im.message.receive_v1': async (data) => {
|
|
35
39
|
await this._handleMessage(data);
|
|
36
40
|
},
|