Skip to content

Commit

Permalink
Changed logging level in exception catch blocks to error in 'RsuSnm…
Browse files Browse the repository at this point in the history
…p.java' and 'OdeProperties.java'
  • Loading branch information
dmccoystephenson committed Jun 16, 2023
1 parent bb1a641 commit 5908b6f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ void initialize() {
} catch (UnknownHostException e) {
// Let's just use a random hostname
hostname = UUID.randomUUID().toString();
logger.warn("Unknown host error: {}, using random", e);
logger.error("Unknown host error: {}, using random", e);
}
hostId = hostname;
logger.info("Host ID: {}", hostId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public static String sendSnmpV3Request(String ip, String oid, Snmp snmp, String
snmp.close();
} catch (Exception e) {
responseEvent = null;
logger.warn("SNMP4J library exception", e);
logger.error("SNMP4J library exception", e);
}

// Interpret snmp response
Expand Down

0 comments on commit 5908b6f

Please sign in to comment.