From 6bebfed07ca0b59c62f4ba8ae40c2003e7e201d3 Mon Sep 17 00:00:00 2001 From: matevip Date: Sun, 14 Jun 2026 17:25:26 +0800 Subject: [PATCH] fix(feishu): surface recent-file disk-scan failures at warn level MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The disk fallback's catch block logged at debug, so a failed scan silently dropped recovered files — reproducing the same 'bot can't see the file' symptom the fallback was added to fix. Promote to warn with the full stack trace, matching cacheRecentFile's logging. --- .../java/vip/mate/channel/feishu/FeishuChannelAdapter.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mateclaw-server/src/main/java/vip/mate/channel/feishu/FeishuChannelAdapter.java b/mateclaw-server/src/main/java/vip/mate/channel/feishu/FeishuChannelAdapter.java index 841bf0cc..ce44b1ae 100644 --- a/mateclaw-server/src/main/java/vip/mate/channel/feishu/FeishuChannelAdapter.java +++ b/mateclaw-server/src/main/java/vip/mate/channel/feishu/FeishuChannelAdapter.java @@ -1844,7 +1844,9 @@ public class FeishuChannelAdapter extends AbstractChannelAdapter implements Stre }) .toList(); } catch (Exception e) { - log.debug("[feishu] Failed to scan disk for recent files in {}: {}", dir, e.getMessage()); + // warn (not debug): a failed disk scan silently drops recovered files, which + // reproduces the exact "bot can't see the file" symptom this fallback fixes. + log.warn("[feishu] Failed to scan disk for recent files in {}: {}", dir, e.getMessage(), e); return List.of(); } }