Skip to content

Commit

Permalink
format stats
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardobl committed Dec 27, 2024
1 parent 4ff4883 commit bf88c45
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lncd/stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@ func startStatsLoop(pool *ConnectionPool) {

if lastStats != nil {
var statsString string = ""
statsString += fmt.Sprintf("Active connections: %d\n", lastStats.NumConnections)
statsString += fmt.Sprintf("\nActive connections: %d", lastStats.NumConnections)
for i, conn := range lastStats.Connections {
statsString += fmt.Sprintf(" Connection id: %d\n", i)
statsString += fmt.Sprintf(" Pending actions: %d\n", conn.NumPendingActions)
statsString += fmt.Sprintf(" Status: %s", conn.Status)
statsString += fmt.Sprintf("\n Connection id: %d", i)
statsString += fmt.Sprintf("\n Pending actions: %d", conn.NumPendingActions)
statsString += fmt.Sprintf("\n Status: %s", conn.Status)
}
log.Debugf("Stats:\n %s", statsString)
log.Debugf("Stats: %s", statsString)
}
}
}()
Expand Down

0 comments on commit bf88c45

Please sign in to comment.