Skip to content

Commit

Permalink
[simulation] expanded node log config info
Browse files Browse the repository at this point in the history
  • Loading branch information
EskoDijk committed Sep 24, 2023
1 parent 108793d commit fe25d6c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion simulation/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,10 @@ func newNode(s *Simulation, nodeid NodeId, cfg *NodeConfig) (*Node, error) {
uartType: NodeUartTypeUndefined,
uartReader: make(chan []byte, 10000),
}
node.Logger.Debugf("node exe path: %s", cfg.ExecutablePath)
node.Logger.Debugf("Node config: IsMtd=%t IsRouter=%t IsBR=%t RxOffWhenIdle=%t", cfg.IsMtd, cfg.IsRouter,
cfg.IsBorderRouter, cfg.RxOffWhenIdle)
node.Logger.Debugf(" exe path: %s", cfg.ExecutablePath)
node.Logger.Debugf(" position: (%d,%d)", cfg.X, cfg.Y)

if node.pipeIn, err = cmd.StdinPipe(); err != nil {
return nil, err
Expand Down

0 comments on commit fe25d6c

Please sign in to comment.