Skip to content

Commit

Permalink
node: add logging thread to node monitoring wg (algorand#4934)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric-Warehime authored Jan 6, 2023
1 parent acd55ce commit fc4e462
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,8 @@ func (node *AlgorandFullNode) startMonitoringRoutines() {
go node.oldKeyDeletionThread(node.ctx.Done())

if node.config.EnableUsageLog {
go logging.UsageLogThread(node.ctx, node.log, 100*time.Millisecond, nil)
node.monitoringRoutinesWaitGroup.Add(1)
go logging.UsageLogThread(node.ctx, node.log, 100*time.Millisecond, &node.monitoringRoutinesWaitGroup)
}
}

Expand Down

0 comments on commit fc4e462

Please sign in to comment.