fix(logging): trim provider log prefixes

This commit is contained in:
Peter Steinberger
2026-01-02 00:15:01 +00:00
parent 464dabdc16
commit 4ec020a86d
5 changed files with 15 additions and 21 deletions

View File

@@ -201,7 +201,7 @@ export function createTelegramBot(opts: TelegramBotOptions) {
bot,
});
} catch (err) {
runtime.error?.(danger(`Telegram handler failed: ${String(err)}`));
runtime.error?.(danger(`handler failed: ${String(err)}`));
}
});
@@ -225,7 +225,7 @@ async function deliverReplies(params: {
const { replies, chatId, runtime, bot } = params;
for (const reply of replies) {
if (!reply?.text && !reply?.mediaUrl && !(reply?.mediaUrls?.length ?? 0)) {
runtime.error?.(danger("Telegram reply missing text/media"));
runtime.error?.(danger("reply missing text/media"));
continue;
}
const mediaList = reply.mediaUrls?.length