Skip to content

Commit

Permalink
Syntax edit
Browse files Browse the repository at this point in the history
  • Loading branch information
ishita9 committed Oct 11, 2024
1 parent a787f6b commit e331586
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion java/edu/ucar/metviewer/db/mysql/MysqlDatabaseManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public class MysqlDatabaseManager extends DatabaseManager {
private static final Logger logger = LogManager.getLogger(MysqlDatabaseManager.class);
try {
String hostName = InetAddress.getLocalHost().getHostName();
ThreadContext.put("hostName", hostName); // Add hostname to the ThreadContext
ThreadContext.put("hostName", hostName);
} catch (Exception e) {
logger.error("Unable to fetch the hostname for logging context", e);
}
Expand Down

0 comments on commit e331586

Please sign in to comment.