Skip to content

Commit 7955dfd

Browse files
committed
chore: cleanup logging
1 parent 7a4d5d3 commit 7955dfd

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed
File renamed without changes.

cmd/wush/rsync.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,7 @@ func rsyncCmd() *serpent.Command {
6161
progPath, overlayOpts.clientAuth.AuthKey(), strings.Join(inv.Args, " "),
6262
),
6363
}
64-
fmt.Println(args)
65-
fmt.Println("Running: rsync", strings.Join(inv.Args, " "))
64+
fmt.Println("Running rsync", strings.Join(inv.Args, " "))
6665
cmd := exec.CommandContext(ctx, "sh", args...)
6766
cmd.Stdin = inv.Stdin
6867
cmd.Stdout = inv.Stdout

overlay/receive.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ func (r *Receive) handleNextMessage(msg []byte, system string) (resRaw []byte, n
357357
}
358358
r.HumanLogf("%s Received connection request over %s from %s", cliui.Timestamp(time.Now()), system, cliui.Keyword(fmt.Sprintf("%s@%s", username, hostname)))
359359
case messageTypeNodeUpdate:
360-
r.HumanLogf("%s Received updated node from %s", cliui.Timestamp(time.Now()), cliui.Code(ovMsg.Node.Key.String()))
360+
r.Logger.Debug("received updated node", slog.String("node_key", ovMsg.Node.Key.String()))
361361
r.in <- &ovMsg.Node
362362
res.Typ = messageTypeNodeUpdate
363363
if lastNode := r.lastNode.Load(); lastNode != nil {

0 commit comments

Comments
 (0)