Skip to content

Commit

Permalink
moving some logging levels to reduce log clutter
Browse files Browse the repository at this point in the history
  • Loading branch information
Wright committed Jun 25, 2024
1 parent c4adf79 commit 29ea35c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cmd/minimega/command_socket.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func commandSocketStart() {
log.Error("commandSocketStart: accept: %v", err)
continue
}
log.Infoln("client connected")
log.Debugln("client connected")

go commandSocketHandle(conn)
}
Expand Down Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions cmd/minimega/namespace.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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.
Expand Down

0 comments on commit 29ea35c

Please sign in to comment.