diff --git a/java/edu/ucar/metviewer/db/mysql/MysqlDatabaseManager.java b/java/edu/ucar/metviewer/db/mysql/MysqlDatabaseManager.java index 97877baf..9a918915 100644 --- a/java/edu/ucar/metviewer/db/mysql/MysqlDatabaseManager.java +++ b/java/edu/ucar/metviewer/db/mysql/MysqlDatabaseManager.java @@ -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); }