From 016524d64752eee74844e96146c3e18cfe6e1e84 Mon Sep 17 00:00:00 2001 From: Jared Anderson Date: Wed, 13 Nov 2024 19:56:59 -0600 Subject: [PATCH] Revert "Increase logging level in JMSAsyncSendTests" --- .../ibm/ws/messaging/open_clientcontainer/fat/Util.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/dev/com.ibm.ws.messaging.open_clientcontainer_fat/common/src/com/ibm/ws/messaging/open_clientcontainer/fat/Util.java b/dev/com.ibm.ws.messaging.open_clientcontainer_fat/common/src/com/ibm/ws/messaging/open_clientcontainer/fat/Util.java index 76bd93ffa7e..2cd44171443 100644 --- a/dev/com.ibm.ws.messaging.open_clientcontainer_fat/common/src/com/ibm/ws/messaging/open_clientcontainer/fat/Util.java +++ b/dev/com.ibm.ws.messaging.open_clientcontainer_fat/common/src/com/ibm/ws/messaging/open_clientcontainer/fat/Util.java @@ -1,5 +1,5 @@ /* ============================================================================ - * Copyright (c) 2019, 2024 IBM Corporation and others. + * Copyright (c) 2019 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License 2.0 * which accompanies this distribution, and is available at @@ -19,7 +19,6 @@ public class Util { public static final String LS = System.lineSeparator(); protected static Logger logger_ = Logger.getLogger("FAT"); - protected static Level defaultLogLevel = Level.INFO; // Sets the default logging level for Trace and Codepath logging. Allows this test to produce more trace by default. static { Level l; String p = System.getProperty("fat.test.debug","INFO").toUpperCase();; @@ -132,8 +131,8 @@ private static StackTraceElement[] gatherStack() { public static void ALWAYS(Object ... args) { doAlways(args); } public static void LOG(Object ... args) { if (logger_.isLoggable(Level.INFO)) doLog(args); } - public static void TRACE(Object ... args) { if (logger_.isLoggable(defaultLogLevel)) doTrace(args); } - public static void CODEPATH() { if (logger_.isLoggable(defaultLogLevel)) doTrace("CODEPATH"); } + public static void TRACE(Object ... args) { if (logger_.isLoggable(Level.FINEST)) doTrace(args); } + public static void CODEPATH() { if (logger_.isLoggable(Level.FINEST)) doTrace("CODEPATH"); } private static void doAlways(Object ... args) { Level keep = logger_.getLevel(); @@ -154,7 +153,7 @@ private static void doLog(Object ... args) { private static void doTrace(Object ... args) { StackTraceElement e = Util.getCaller(2); - logger_.logp(defaultLogLevel,e.getClassName(),e.getMethodName(),"["+e.getFileName()+":"+e.getLineNumber()+"] "+assembleMsg(args)); + logger_.logp(Level.FINEST,e.getClassName(),e.getMethodName(),"["+e.getFileName()+":"+e.getLineNumber()+"] "+assembleMsg(args)); } private static String assembleMsg(Object ... args) {