Skip to content

Commit 29f133a

Browse files
authored
Remove dead logback.configurationFile reference and silence noisy pax-web INFO logs (#177)
1 parent 2842321 commit 29f133a

7 files changed

Lines changed: 11 additions & 9 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ jobs:
6565
Start-Sleep -s 180
6666
type logs\openidm0.log.0
6767
findstr "OpenIDM ready" logs\openidm0.log.0
68-
if (Select-String -Path logs\openidm0.log.0 -Pattern 'ERROR|SEVERE|Exception|Throwable' -Quiet) {
68+
if (Select-String -Path logs\openidm0.log.0 -Pattern 'ERROR|SEVERE|Exception|Throwable' -CaseSensitive -Quiet) {
6969
Write-Host "Errors or exceptions detected in openidm0.log.0"
70-
Select-String -Path logs\openidm0.log.0 -Pattern 'ERROR|SEVERE|Exception|Throwable'
70+
Select-String -Path logs\openidm0.log.0 -Pattern 'ERROR|SEVERE|Exception|Throwable' -CaseSensitive
7171
exit 1
7272
}
7373
- name: Upload failure artifacts
@@ -129,7 +129,7 @@ jobs:
129129
run: |
130130
OPTS=""
131131
if [ -n "${{ matrix.context_path }}" ]; then
132-
OPTS="-Dlogback.configurationFile=conf/logging-config.groovy -Dopenidm.context.path=${{ matrix.context_path }}"
132+
OPTS="-Dopenidm.context.path=${{ matrix.context_path }}"
133133
fi
134134
ARGS=""
135135
if [ -n "${{ matrix.samples }}" ]; then

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ FROM eclipse-temurin:25-jre-jammy
1616
LABEL org.opencontainers.image.authors="Open Identity Platform Community"
1717

1818
ENV USER="openidm"
19-
ENV OPENIDM_OPTS="-server -XX:+UseContainerSupport --add-exports java.base/com.sun.jndi.ldap=ALL-UNNAMED -Dlogback.configurationFile=conf/logging-config.groovy"
19+
ENV OPENIDM_OPTS="-server -XX:+UseContainerSupport --add-exports java.base/com.sun.jndi.ldap=ALL-UNNAMED"
2020

2121
ARG VERSION
2222

Dockerfile-alpine

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ FROM alpine:latest
1616
LABEL org.opencontainers.image.authors="Open Identity Platform Community"
1717

1818
ENV USER="openidm"
19-
ENV OPENIDM_OPTS="-server -XX:+UseContainerSupport -Dlogback.configurationFile=conf/logging-config.groovy"
19+
ENV OPENIDM_OPTS="-server -XX:+UseContainerSupport"
2020

2121
ARG VERSION
2222

openidm-zip/pom.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
~ your own identifying information:
2323
~ "Portions Copyrighted [year] [name of copyright owner]"
2424
~
25-
~ Portions Copyrighted 2019-2025 3A Systems LLC.
25+
~ Portions Copyrighted 2019-2026 3A Systems LLC.
2626
-->
2727
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2828
<modelVersion>4.0.0</modelVersion>
@@ -901,7 +901,6 @@
901901
</activation>
902902
<properties>
903903
<openidm.options>
904-
-Dlogback.configurationFile=conf/logging-config.groovy
905904
</openidm.options>
906905
</properties>
907906
<dependencies>

openidm-zip/src/main/resources/bin/install-service.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ set OPENIDM_OPTS_SERVICE=%OPENIDM_OPTS: =;%
2828
rem set SERVER_START_PARAMS="-c;bin/launcher.json"
2929
set CP=bin/launcher.jar;bin/felix.jar
3030
rem JAVA_OPTS_SERVICE will be fed to the prunmgr.exe which requires all semi-colon delimiters
31-
set JAVA_OPTS_SERVICE=%OPENIDM_OPTS_SERVICE%;-Djava.util.logging.config.file=conf\logging.properties;-Dlogback.configurationFile=conf\logging-config.xml;
31+
set JAVA_OPTS_SERVICE=%OPENIDM_OPTS_SERVICE%;-Djava.util.logging.config.file=conf\logging.properties;
3232
rem Enable debugging uncomment the line below
3333
rem set JAVA_OPTS_SERVICE=%JAVA_OPTS_SERVICE%;-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005;
3434

openidm-zip/src/main/resources/conf/logging.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ org.identityconnectors.framework.impl.api.local.LocalConnectorInfoManagerImpl.le
7373
# Suppress warnings of failed error page model validation
7474
org.ops4j.pax.web.service.spi.model.elements.ErrorPageModel.level=SEVERE
7575

76+
# Suppress noisy INFO records from pax-web bundle (servlet/error-page registration)
77+
org.ops4j.pax.web.level=WARNING
78+
7679
# OrientDB 3.x: suppress harmless WARNINGs that we cannot act on
7780
# - OScriptManager logs "ECMAScript engine not found" when no JSR-223 javascript
7881
# engine is on the classpath (we don't ship one and don't use OrientDB JS).

openidm-zip/src/main/resources/startup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ PRGDIR=`dirname "$PRG"`
9595
[ -z "$OPENIDM_PID_FILE" ] && OPENIDM_PID_FILE="$OPENIDM_HOME"/.openidm.pid
9696

9797
# Only set OPENIDM_OPTS if not already set
98-
[ -z "$OPENIDM_OPTS" ] && OPENIDM_OPTS="-Dlogback.configurationFile=conf/logging-config.groovy"
98+
[ -z "$OPENIDM_OPTS" ] && OPENIDM_OPTS=""
9999

100100
# Set JDK Logger config file if it is present and an override has not been issued
101101
PROJECT_HOME=$OPENIDM_HOME

0 commit comments

Comments
 (0)