aboutsummaryrefslogtreecommitdiff
path: root/servers.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2024-12-12 08:05:46 +0800
committerRunxi Yu <me@runxiyu.org>2024-12-12 08:05:46 +0800
commit3b7e9385f3004fa70ce4ee5b3e8e6abdb7bd2f10 (patch)
treea9c6a02223b1e4f18390e075ea9fd0351953b4c0 /servers.go
parentUse CID instead of connection pointers while logging (diff)
downloadmeseircd-3b7e9385f3004fa70ce4ee5b3e8e6abdb7bd2f10.tar.gz
meseircd-3b7e9385f3004fa70ce4ee5b3e8e6abdb7bd2f10.tar.zst
meseircd-3b7e9385f3004fa70ce4ee5b3e8e6abdb7bd2f10.zip
Use meselog instead of slog
Diffstat (limited to '')
-rw-r--r--servers.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/servers.go b/servers.go
index 59ed979..af31093 100644
--- a/servers.go
+++ b/servers.go
@@ -1,8 +1,9 @@
package main
import (
- "log/slog"
"net"
+
+ "git.sr.ht/~runxiyu/meseircd/meselog"
)
type Server struct {
@@ -23,7 +24,7 @@ func (server *Server) SendRaw(s string) error {
// TODO: Propagate across mesh
return ErrNotConnectedServer
}
- slog.Debug("send", "line", s, "conn", server.conn)
+ meselog.Debug("send", "line", s, "conn", server.conn)
_, err := (*server.conn).Write([]byte(s))
if err != nil {
// TODO: Should shut down the netFd instead but the stdlib