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:
matevip 2026-06-14 17:25:26 +08:00
parent f361e0e917
commit 6bebfed07c

View File

@ -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();
}
}