Skip to content

Commit

Permalink
Added comments and updated log statements
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbourelly999 committed Aug 1, 2023
1 parent 483fc99 commit 7c9b453
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,15 +159,4 @@ public String toString() {
+ sensors + "]";
}












}
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public CarmaV2xMessageReceiver(int listenPort) {
public void init() {
try {
listenSocket = new DatagramSocket(listenPort);
log.info("CarmaV2xMessageReceiver started listening on UDP port: " + listenPort);
log.info("CarmaV2xMessageReceiver started listening on UDP port: {}.", listenPort);
} catch (SocketException e) {
throw new RuntimeException(e);
}
Expand All @@ -89,9 +89,8 @@ public void run() {
DatagramPacket msg = new DatagramPacket(buf, buf.length);

try {
log.info("Is running {}", running);
listenSocket.receive(msg);
log.info("CarmaV2xMessageReceiver received message of size: " + msg.getLength() + " from client " + msg.getAddress().toString() + ".");
log.debug("CarmaV2xMessageReceiver received message of size {} from client {}.",msg.getLength(), msg.getAddress());
} catch (IOException e) {
log.error("Error occured :", e);
continue;
Expand Down

0 comments on commit 7c9b453

Please sign in to comment.