You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by pv...@apache.org on 2025/07/11 14:13:35 UTC

(nifi) branch main updated: NIFI-14739 Added Logback NopStatusListener to Bootstrap Command

This is an automated email from the ASF dual-hosted git repository.

pvillard pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi.git


The following commit(s) were added to refs/heads/main by this push:
     new 42900ae76c NIFI-14739 Added Logback NopStatusListener to Bootstrap Command
42900ae76c is described below

commit 42900ae76cf61c1f1ddb526c27312566e278c3d7
Author: exceptionfactory <ex...@apache.org>
AuthorDate: Thu Jul 10 23:28:15 2025 -0500

    NIFI-14739 Added Logback NopStatusListener to Bootstrap Command
    
    - NopStatusListener prevents Logback configuration failures from interfering with application run command formatting
    
    Signed-off-by: Pierre Villard <pi...@gmail.com>
    
    This closes #10082.
---
 .../nifi-framework/nifi-resources/src/main/resources/bin/nifi.sh     | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/nifi-framework-bundle/nifi-framework/nifi-resources/src/main/resources/bin/nifi.sh b/nifi-framework-bundle/nifi-framework/nifi-resources/src/main/resources/bin/nifi.sh
index 30474bdd07..f82bdca087 100755
--- a/nifi-framework-bundle/nifi-framework/nifi-resources/src/main/resources/bin/nifi.sh
+++ b/nifi-framework-bundle/nifi-framework/nifi-resources/src/main/resources/bin/nifi.sh
@@ -214,8 +214,11 @@ run() {
     echo "NIFI_HOME=${NIFI_HOME}"
     echo
 
+    # NopStatusListener prevents Logback from writing configuration failures to the standard output stream
+    BOOTSTRAP_LOGBACK_STATUS_LISTENER="-Dlogback.statusListenerClass=ch.qos.logback.core.status.NopStatusListener"
+
     #setup directory parameters
-    BOOTSTRAP_LOG_PARAMS="-Dorg.apache.nifi.bootstrap.config.log.dir='${NIFI_LOG_DIR}'"
+    BOOTSTRAP_LOG_PARAMS="${BOOTSTRAP_LOGBACK_STATUS_LISTENER} -Dorg.apache.nifi.bootstrap.config.log.dir='${NIFI_LOG_DIR}'"
     BOOTSTRAP_CONF_PARAMS="-Dorg.apache.nifi.bootstrap.config.file='${BOOTSTRAP_CONF}'"
 
     # uncomment to allow debugging of the bootstrap process