diff options
author | Runxi Yu <me@runxiyu.org> | 2025-03-25 00:43:19 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-03-25 10:13:59 +0800 |
commit | a0d3836510f6211086c8ea1a7d2e83fae10690b3 (patch) | |
tree | b6f6a294f43d46e715276835c9c06316f077e3cb | |
parent | Weirder handler messages (diff) | |
download | powxy-a0d3836510f6211086c8ea1a7d2e83fae10690b3.tar.gz powxy-a0d3836510f6211086c8ea1a7d2e83fae10690b3.tar.zst powxy-a0d3836510f6211086c8ea1a7d2e83fae10690b3.zip |
idrc about the level here tbh
-rw-r--r-- | irclog.go | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -30,8 +30,6 @@ func (h *IRCLogHandler) Handle(_ context.Context, r slog.Record) error { sb.WriteString("PRIVMSG #logs :") - sb.WriteString(r.Level.String()) - sb.WriteString(" ") sb.WriteString(r.Message) r.Attrs(func(a slog.Attr) bool { @@ -79,7 +77,6 @@ func attrValueToString(v slog.Value) string { } func init() { - slog.SetDefault(slog.New(NewIRCLogHandler(slog.LevelInfo))) } // copied from slog |