Skip to content

Commit

Permalink
Get rid of Sentry log sink which is verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
dahlia committed Dec 23, 2024
1 parent 818f824 commit 81de8cc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ To be released.

- Improved the performance of recipients gathering during sending activities.

- For the sake of concision, now log sink for Sentry is removed.

[#65]: https://github.com/dahlia/hollo/issues/65


Expand Down
12 changes: 5 additions & 7 deletions src/logging.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {
getStreamSink,
parseLogLevel,
} from "@logtape/logtape";
import { getSentrySink } from "@logtape/sentry";

// biome-ignore lint/complexity/useLiteralKeys: tsc complains about this (TS4111)
const LOG_LEVEL: LogLevel = parseLogLevel(process.env["LOG_LEVEL"] ?? "info");
Expand All @@ -25,7 +24,6 @@ await configure({
timestamp: "time",
}),
}),
sentry: getSentrySink(),
file:
LOG_FILE == null
? () => undefined
Expand All @@ -38,27 +36,27 @@ await configure({
{
category: "fedify",
lowestLevel: LOG_LEVEL,
sinks: ["console", "sentry", "file"],
sinks: ["console", "file"],
},
{
category: ["fedify", "runtime", "docloader"],
lowestLevel: "warning",
sinks: ["console", "sentry", "file"],
sinks: ["console", "file"],
},
{
category: "hollo",
lowestLevel: LOG_LEVEL,
sinks: ["console", "sentry", "file"],
sinks: ["console", "file"],
},
{
category: "drizzle-orm",
lowestLevel: LOG_QUERY ? "debug" : "fatal",
sinks: ["console", "sentry", "file"],
sinks: ["console", "file"],
},
{
category: ["logtape", "meta"],
lowestLevel: "warning",
sinks: ["console", "sentry", "file"],
sinks: ["console", "file"],
},
],
});

0 comments on commit 81de8cc

Please sign in to comment.