Skip to content

Commit 07b67d5

Browse files
committed
Merge branch 'slf4j-squelch' into 'main'
prevent SLF4J startup messages from printing to stderr See merge request weblogic-cloud/weblogic-deploy-tooling!1744
2 parents 32e7db4 + 0bcf643 commit 07b67d5

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

installer/src/main/bin/shared.cmd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,8 @@ GOTO :EOF
280280

281281
SET "WLST_PROPERTIES=-Dcom.oracle.cie.script.throwException=true"
282282
SET "WLST_PROPERTIES=%WLST_PROPERTIES% -Djava.util.logging.config.class=%LOG_CONFIG_CLASS%"
283+
SET "WLST_PROPERTIES=%WLST_PROPERTIES% -Dslf4j.provider=org.slf4j.jul.JULServiceProvider"
284+
SET "WLST_PROPERTIES=%WLST_PROPERTIES% -Dslf4j.internal.verbosity=ERROR"
283285
SET "WLST_PROPERTIES=%WLST_PROPERTIES% %WLSDEPLOY_PROPERTIES%"
284286

285287
@REM print the configuration, and run the script

installer/src/main/bin/shared.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,6 @@ runWlst() {
225225
CLASSPATH="${WLSDEPLOY_HOME}/lib/weblogic-deploy-core.jar"; export CLASSPATH
226226
fi
227227

228-
229228
if [ -z "${WLST}" ]; then
230229
echo "Unable to determine WLS version in ${ORACLE_HOME} to determine WLST shell script to call" >&2
231230
exit 98
@@ -234,6 +233,8 @@ runWlst() {
234233

235234
WLST_PROPERTIES=-Dcom.oracle.cie.script.throwException=true
236235
WLST_PROPERTIES="${WLST_PROPERTIES} -Djava.util.logging.config.class=${LOG_CONFIG_CLASS}"
236+
WLST_PROPERTIES="${WLST_PROPERTIES} -Dslf4j.provider=org.slf4j.jul.JULServiceProvider"
237+
WLST_PROPERTIES="${WLST_PROPERTIES} -Dslf4j.internal.verbosity=ERROR"
237238
WLST_PROPERTIES="${WLST_PROPERTIES} ${WLSDEPLOY_PROPERTIES}"
238239
export WLST_PROPERTIES
239240

0 commit comments

Comments
 (0)