From 6abd818ed63a111939c7fac81b3328e21204d489 Mon Sep 17 00:00:00 2001 From: matst80 Date: Tue, 12 Nov 2024 21:33:01 +0100 Subject: [PATCH] better logs --- remote-host.go | 1 - synced-pool.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/remote-host.go b/remote-host.go index d7cfbcf..88e2837 100644 --- a/remote-host.go +++ b/remote-host.go @@ -81,7 +81,6 @@ func (g *RemoteHost) GetCartMappings() ([]CartId, error) { } func (r *RemoteHost) ConfirmChange(id CartId, host string) error { - log.Printf("Confirming change %s to %s", id, host) reply, err := r.Call(RemoteGrainChanged, AckChange, []byte(fmt.Sprintf("%s;%s", id, host))) if err != nil { diff --git a/synced-pool.go b/synced-pool.go index 5ea5c44..5089167 100644 --- a/synced-pool.go +++ b/synced-pool.go @@ -105,7 +105,7 @@ func (p *SyncedPool) GrainOwnerChangeHandler(data []byte) (PoolMessage, []byte, } id := ToCartId(idAndHostParts[0]) host := idAndHostParts[1] - log.Println("Handling grain owner change to %s for id %s\n", host, id) + log.Printf("Handling remote grain owner change to %s for id %s\n", host, id) for _, r := range p.remotes { if r.Host == host { // log.Printf("Remote grain %s changed to %s\n", id, host)