Skip to content

Commit

Permalink
replace fmt.Print with log.Print
Browse files Browse the repository at this point in the history
  • Loading branch information
aler9 committed Jun 18, 2023
1 parent 47644ad commit 6df0505
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -323,11 +323,11 @@ func (p *program) run() {
targetComponent < 1 { // Route if compid matches or is a broadcast
if remoteNode.Channel != evt.Channel { // Prevents Loops
if cli.PrintRoutes {
fmt.Println("Routing msg ", evt.Message().GetID(), " from ", evt.Channel, "--->", remoteNode.Channel)
log.Println("Routing msg ", evt.Message().GetID(), " from ", evt.Channel, "--->", remoteNode.Channel)
}
p.node.WriteFrameTo(remoteNode.Channel, evt.Frame)
} else {
fmt.Println("Warning: channel ", remoteNode.Channel, " attempted to send to itself, discarding ")
log.Println("Warning: channel ", remoteNode.Channel, " attempted to send to itself, discarding ")
}
}
}
Expand Down

0 comments on commit 6df0505

Please sign in to comment.