Fix write log to stderr

This commit is contained in:
世界
2023-04-10 08:48:58 +08:00
parent 8699412a4c
commit f7f9a7ae20
3 changed files with 6 additions and 3 deletions

View File

@@ -63,7 +63,7 @@ func (s *CommandServer) handleLogConn(conn net.Conn) error {
for {
select {
case <-ctx.Done():
return nil
return ctx.Err()
case message := <-subscription:
err = writeLog(conn, []byte(message))
if err != nil {