From 20b2df1fc5c12b775446a59204a4b2fea00f8ce5 Mon Sep 17 00:00:00 2001 From: mountain Date: Tue, 13 Jun 2023 23:54:32 +0900 Subject: [PATCH] =?UTF-8?q?=EB=A1=9C=EA=B7=B8=20=EC=A0=95=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/client.go | 4 ---- server/operation.go | 7 ------- 2 files changed, 11 deletions(-) diff --git a/client/client.go b/client/client.go index 68474e3..d59d0bf 100644 --- a/client/client.go +++ b/client/client.go @@ -282,8 +282,6 @@ func NewClient() (HoustonClient, error) { case shared.Deploy: var dr shared.DeployRequest unmarshal(&dr, resp.Args) - - shared.Logger().Println(dr.Name, myname) if dr.Name == myname { if srcdir, replacer, err := hc.prepareUpdateSelf(&dr); err == nil { args := []string{ @@ -292,7 +290,6 @@ func NewClient() (HoustonClient, error) { filepath.ToSlash(os.Args[0]), } args = append(args, os.Args[1:]...) - shared.Logger().Println(replacer, args) cmd := exec.Command(replacer, args...) if err := cmd.Start(); err != nil { shared.Logger().Println(err) @@ -438,7 +435,6 @@ func (hc *houstonClient) checkOperation() error { cl.CloseSend() return err } - shared.Logger().Println(update) hc.operationChan <- update } } diff --git a/server/operation.go b/server/operation.go index 1992317..8082a26 100644 --- a/server/operation.go +++ b/server/operation.go @@ -2,7 +2,6 @@ package server import ( "context" - "encoding/json" "fmt" "reflect" "sync" @@ -71,9 +70,6 @@ func (sp *hostPool) regist(desc *protos.OperationQueryRequest) (string, chan *op host = makeHostWithChan(desc).withOpChan(host.opChan) } sp.hosts[desc.Hostname] = host - - test, _ := json.Marshal(sp.hosts) - shared.Logger().Println(string(test)) return desc.Hostname, host.opChan } @@ -86,9 +82,6 @@ func (sp *hostPool) refresh(desc *protos.OperationQueryRequest) { host = makeHostWithChan(desc).withOpChan(host.opChan) sp.hosts[desc.Hostname] = host } - - test, _ := json.Marshal(sp.hosts) - shared.Logger().Println(string(test)) } func (sp *hostPool) unregist(key string) {