Skip to content

Commit a85f72f

Browse files
committed
Change log level to debug for nodestate API endpoint
1 parent db8772d commit a85f72f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/api/node.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ func (api *RestAPI) updateNodeStates(rw http.ResponseWriter, r *http.Request) {
100100
}
101101
}
102102

103-
cclog.Infof("Timer updateNodeStates, MemStore HealthCheck: %s", time.Since(startMs))
104-
startDb := time.Now()
103+
cclog.Debugf("Timer updateNodeStates, MemStore HealthCheck: %s", time.Since(startMs))
104+
startDB := time.Now()
105105

106106
for _, node := range req.Nodes {
107107
state := determineState(node.States)
@@ -122,5 +122,5 @@ func (api *RestAPI) updateNodeStates(rw http.ResponseWriter, r *http.Request) {
122122
repo.UpdateNodeState(node.Hostname, req.Cluster, &nodeState)
123123
}
124124

125-
cclog.Infof("Timer updateNodeStates, SQLite Inserts: %s", time.Since(startDb))
125+
cclog.Debugf("Timer updateNodeStates, SQLite Inserts: %s", time.Since(startDB))
126126
}

0 commit comments

Comments
 (0)