Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Revert "Increase logging level in JMSAsyncSendTests" #30176

Merged
merged 1 commit into from
Nov 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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