fix: add debug log for dashboard channel discovery failure

This commit is contained in:
Eyejoker
2026-03-30 02:50:37 +09:00
parent 1031cd44dd
commit 4b4863330b

View File

@@ -580,7 +580,17 @@ export async function startUnifiedDashboard(
if (!isRenderer) return;
const channel = findDiscordChannel(opts.channels);
if (!channel) return;
if (!channel) {
logger.warn(
{
channelCount: opts.channels.length,
names: opts.channels.map((c) => c.name),
connected: opts.channels.map((c) => c.isConnected()),
},
'Dashboard: no connected Discord channel found',
);
return;
}
try {
await refreshChannelMeta(opts);