Skip to content

Commit

Permalink
Merge pull request #30176 from OpenLiberty/revert-30126-increaseAsync…
Browse files Browse the repository at this point in the history
…SendTestLogging

Revert "Increase logging level in JMSAsyncSendTests"
  • Loading branch information
jhanders34 authored Nov 14, 2024
2 parents 8fe2961 + 016524d commit 408503f
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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();;
Expand Down Expand Up @@ -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();
Expand All @@ -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) {
Expand Down

0 comments on commit 408503f

Please # to comment.