From 10ab7556babe04d3e3274ef8b049e3a87fdf04a4 Mon Sep 17 00:00:00 2001 From: Christine Banek Date: Tue, 20 Dec 2022 12:47:45 -0700 Subject: [PATCH] [DM-37254] Emit exception message as warning Right now this is printed out at the debug level, but it will be a lot easier to find and get a hold of if we make it a warning. Since this is an exception path, this shouldn't really add too much log spam, considering the rethrown messages are emitted after, but we seem to lose the first one which is the most important. --- src/main/java/org/opencadc/tap/impl/QServQueryRunner.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/opencadc/tap/impl/QServQueryRunner.java b/src/main/java/org/opencadc/tap/impl/QServQueryRunner.java index 0b8930c..34582e3 100644 --- a/src/main/java/org/opencadc/tap/impl/QServQueryRunner.java +++ b/src/main/java/org/opencadc/tap/impl/QServQueryRunner.java @@ -496,8 +496,8 @@ else if (rs != null) diagnostics.add(new Result("diag", URI.create("fail:"+dt))); errorMessage = t.getClass().getSimpleName() + ":" + t.getMessage(); - log.debug("BADNESS", t); - log.debug("Error message: " + errorMessage); + log.warn("BADNESS", t); + log.warn("Error message: " + errorMessage); log.debug("creating TableWriter for error..."); TableWriter ewriter = pfac.getErrorWriter();