From c3bde2371757c5c7de7fa1ea7c0f44c0e8dad7d3 Mon Sep 17 00:00:00 2001
From: Brandon Clayton <bclayton@usgs.gov>
Date: Wed, 15 Jan 2025 08:30:30 -0700
Subject: [PATCH] clean

---
 .../java/gov/usgs/earthquake/nshmp/www/ServletUtil.java   | 8 --------
 .../usgs/earthquake/nshmp/www/SwaggerUIController.java    | 2 +-
 2 files changed, 1 insertion(+), 9 deletions(-)

diff --git a/src/main/java/gov/usgs/earthquake/nshmp/www/ServletUtil.java b/src/main/java/gov/usgs/earthquake/nshmp/www/ServletUtil.java
index c73fde8c..d031f092 100644
--- a/src/main/java/gov/usgs/earthquake/nshmp/www/ServletUtil.java
+++ b/src/main/java/gov/usgs/earthquake/nshmp/www/ServletUtil.java
@@ -102,21 +102,13 @@ public class ServletUtil {
 
   @EventListener
   void shutdown(ShutdownEvent event) {
-    var log = java.util.logging.Logger.getAnonymousLogger();
-
-    log.info("on shutdown");
     CALC_EXECUTOR.shutdown();
     TASK_EXECUTOR.shutdown();
   }
 
   @EventListener
   void startup(StartupEvent event) {
-    var log = java.util.logging.Logger.getAnonymousLogger();
-
-    log.info("on startup");
-
     if (!awsRuntime.isPresent()) {
-      log.info("not aws");
       HAZARD_MODEL = loadModel(modelPath);
     }
   }
diff --git a/src/main/java/gov/usgs/earthquake/nshmp/www/SwaggerUIController.java b/src/main/java/gov/usgs/earthquake/nshmp/www/SwaggerUIController.java
index d042c4be..d749c506 100644
--- a/src/main/java/gov/usgs/earthquake/nshmp/www/SwaggerUIController.java
+++ b/src/main/java/gov/usgs/earthquake/nshmp/www/SwaggerUIController.java
@@ -48,7 +48,7 @@ public class SwaggerUIController {
   private NshmpMicronautServlet servlet;
 
   @Get("{/path:.*}{.ext:png}")
-  @Produces("image/png; charset=utf-8")
+  @Produces(MediaType.IMAGE_PNG)
   @Hidden
   public byte[] getSwaggerPngImages(
       @PathVariable @Nullable String path,
-- 
GitLab