Skip to content

Commit

Permalink
Improve the logging on startup to log missing pods
Browse files Browse the repository at this point in the history
  • Loading branch information
Phoenix616 committed Apr 17, 2024
1 parent 5edd75e commit f42519b
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,16 +155,16 @@ public HashMap<String, Pod> getServersForStartup() {
verb = "Found";
}

for (String podUid : podIdToServerNameMap.keySet()) {
plugin
.getLogger()
.info(verb + " server: " + podIdToServerNameMap.get(podUid) + " (" + podUid + ")");
}

HashMap<String, Pod> servers = new HashMap<>();
for (Entry<String, String> entry : podIdToServerNameMap.entrySet()) {
plugin
.getLogger()
.info(verb + " server: " + entry.getValue() + " (" + entry.getKey() + ")");
Pod pod = getPodByUid(entry.getKey());
if (pod == null) {
plugin
.getLogger()
.warn("Pod " + entry.getKey() + " for server " + entry.getValue() + " not found");
continue;
}

Expand Down

0 comments on commit f42519b

Please sign in to comment.