From 29ea35c4fa4cc0f5017f3e06bcc7f0f8db816715 Mon Sep 17 00:00:00 2001 From: Wright Date: Tue, 25 Jun 2024 13:11:17 -0600 Subject: [PATCH] moving some logging levels to reduce log clutter --- cmd/minimega/command_socket.go | 4 ++-- cmd/minimega/namespace.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/minimega/command_socket.go b/cmd/minimega/command_socket.go index 14d407837..6c45012f8 100644 --- a/cmd/minimega/command_socket.go +++ b/cmd/minimega/command_socket.go @@ -30,7 +30,7 @@ func commandSocketStart() { log.Error("commandSocketStart: accept: %v", err) continue } - log.Infoln("client connected") + log.Debugln("client connected") go commandSocketHandle(conn) } @@ -185,7 +185,7 @@ func commandSocketHandle(c net.Conn) { // finally, log the error, if there was one if err == nil || err == io.EOF { - log.Infoln("command client disconnected") + log.Debugln("command client disconnected") } else if err != nil && strings.Contains(err.Error(), "write: broken pipe") { log.Infoln("command client disconnected without waiting for responses") } else if err != nil { diff --git a/cmd/minimega/namespace.go b/cmd/minimega/namespace.go index cd519da57..7e9872527 100644 --- a/cmd/minimega/namespace.go +++ b/cmd/minimega/namespace.go @@ -913,7 +913,7 @@ func SetNamespace(name string) error { return errors.New("namespace name cannot be the empty string") } - log.Info("setting active namespace: %v", name) + log.Debug("setting active namespace: %v", name) if name == namespace { return fmt.Errorf("already in namespace: %v", name) @@ -929,7 +929,7 @@ func RevertNamespace(old, curr *Namespace) { namespaceLock.Lock() defer namespaceLock.Unlock() - log.Info("reverting to namespace: %v", old) + log.Debug("reverting to namespace: %v", old) // This is very odd and should *never* happen unless something has gone // horribly wrong.