platform: Add stderr redirect

This commit is contained in:
世界
2023-04-09 22:32:15 +08:00
parent 0d7aa19cd1
commit 8699412a4c
2 changed files with 30 additions and 1 deletions

View File

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