Skip to content

Commit c0faba4

Browse files
committed
Get rid of Sentry log sink which is verbose
1 parent 40fd2f2 commit c0faba4

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

CHANGES.md

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ To be released.
2323

2424
- Improved the performance of recipients gathering during sending activities.
2525

26+
- For the sake of concision, now log sink for Sentry is removed.
27+
2628
[#65]: https://github.com/dahlia/hollo/issues/65
2729

2830

src/logging.ts

+5-7
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import {
88
getStreamSink,
99
parseLogLevel,
1010
} from "@logtape/logtape";
11-
import { getSentrySink } from "@logtape/sentry";
1211

1312
// biome-ignore lint/complexity/useLiteralKeys: tsc complains about this (TS4111)
1413
const LOG_LEVEL: LogLevel = parseLogLevel(process.env["LOG_LEVEL"] ?? "info");
@@ -25,7 +24,6 @@ await configure({
2524
timestamp: "time",
2625
}),
2726
}),
28-
sentry: getSentrySink(),
2927
file:
3028
LOG_FILE == null
3129
? () => undefined
@@ -38,27 +36,27 @@ await configure({
3836
{
3937
category: "fedify",
4038
lowestLevel: LOG_LEVEL,
41-
sinks: ["console", "sentry", "file"],
39+
sinks: ["console", "file"],
4240
},
4341
{
4442
category: ["fedify", "runtime", "docloader"],
4543
lowestLevel: "warning",
46-
sinks: ["console", "sentry", "file"],
44+
sinks: ["console", "file"],
4745
},
4846
{
4947
category: "hollo",
5048
lowestLevel: LOG_LEVEL,
51-
sinks: ["console", "sentry", "file"],
49+
sinks: ["console", "file"],
5250
},
5351
{
5452
category: "drizzle-orm",
5553
lowestLevel: LOG_QUERY ? "debug" : "fatal",
56-
sinks: ["console", "sentry", "file"],
54+
sinks: ["console", "file"],
5755
},
5856
{
5957
category: ["logtape", "meta"],
6058
lowestLevel: "warning",
61-
sinks: ["console", "sentry", "file"],
59+
sinks: ["console", "file"],
6260
},
6361
],
6462
});

0 commit comments

Comments
 (0)