feat(api): Add more Sentry logging

This commit is contained in:
Jesse Wierzbinski 2024-07-24 19:04:00 +02:00
parent daba8e8178
commit 0bc6a89706
No known key found for this signature in database
6 changed files with 14 additions and 0 deletions

View file

@ -1,5 +1,6 @@
import { getLogger } from "@logtape/logtape";
import { markdownParse } from "~/classes/functions/status";
import { sentry } from "./sentry";
export const renderMarkdownInPath = async (
path: string,
@ -15,6 +16,7 @@ export const renderMarkdownInPath = async (
(await markdownParse(
(await extendedDescriptionFile.text().catch(async (e) => {
await getLogger("server").error`${e}`;
sentry?.captureException(e);
return "";
})) ||
defaultText ||