mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
feat(api): ✨ Add more Sentry logging
This commit is contained in:
parent
daba8e8178
commit
0bc6a89706
6 changed files with 14 additions and 0 deletions
|
|
@ -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 ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue