mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-03 17:26:57 +01:00
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:
parent
64753b01d1
commit
349dd44545
1 changed files with 2 additions and 1 deletions
|
@ -6340,7 +6340,8 @@ func (r *rpcServer) GetNetworkInfo(ctx context.Context,
|
||||||
}
|
}
|
||||||
start := time.Now()
|
start := time.Now()
|
||||||
diameter := simpleGraph.DiameterRadialCutoff()
|
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))
|
time.Since(start))
|
||||||
|
|
||||||
// TODO(roasbeef): also add oldest channel?
|
// TODO(roasbeef): also add oldest channel?
|
||||||
|
|
Loading…
Add table
Reference in a new issue