rpc: move diameter calc timing logs to trace log level

In this commit, we move the logs printed each time we calculate the
diameter of the graph to the `trace` log level to reduce on log spam.
This commit is contained in:
Olaoluwa Osuntokun 2023-11-16 21:10:41 -08:00
parent 64753b01d1
commit 349dd44545
No known key found for this signature in database
GPG key ID: 3BBD59E99B280306

View file

@ -6340,7 +6340,8 @@ func (r *rpcServer) GetNetworkInfo(ctx context.Context,
}
start := time.Now()
diameter := simpleGraph.DiameterRadialCutoff()
rpcsLog.Infof("elapsed time for diameter (%d) calculation: %v", diameter,
rpcsLog.Tracef("elapsed time for diameter (%d) calculation: %v", diameter,
time.Since(start))
// TODO(roasbeef): also add oldest channel?