From 3b7e9385f3004fa70ce4ee5b3e8e6abdb7bd2f10 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Thu, 12 Dec 2024 08:05:46 +0800 Subject: Use meselog instead of slog --- servers.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'servers.go') 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 -- cgit v1.2.3