mirror of
https://gitee.com/mateos/mateclaw.git
synced 2026-09-13 11:13:43 +08:00
fix(feishu): surface recent-file disk-scan failures at warn level
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.
This commit is contained in:
parent
f361e0e917
commit
6bebfed07c
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user