From 337995010159041aaf52b7749b46a0c0f55288d1 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sun, 8 Dec 2024 09:25:21 +0800 Subject: Primitive client states --- servers.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'servers.go') diff --git a/servers.go b/servers.go index eb91072..e878911 100644 --- a/servers.go +++ b/servers.go @@ -2,6 +2,7 @@ package main import ( "net" + "log/slog" ) type Server struct { @@ -22,6 +23,7 @@ func (server *Server) SendRaw(s string) error { // TODO: Propagate across mesh return ErrNotConnectedServer } + slog.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