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

jbonofre pushed a commit to branch karaf-4.4.x
in repository https://gitbox.apache.org/repos/asf/karaf.git


The following commit(s) were added to refs/heads/karaf-4.4.x by this push:
     new ee7b015764 KARAF-8001: catch UnsupportedOperationException in 
LogService as it can happen in the case of static distribution (#2072)
ee7b015764 is described below

commit ee7b015764b78e501cfcbd30390dcc0a463dbbaf
Author: JB Onofré <[email protected]>
AuthorDate: Tue Sep 30 07:56:28 2025 +0200

    KARAF-8001: catch UnsupportedOperationException in LogService as it can 
happen in the case of static distribution (#2072)
---
 .../main/java/org/apache/karaf/log/core/internal/LogServiceImpl.java    | 2 ++
 1 file changed, 2 insertions(+)

diff --git 
a/log/src/main/java/org/apache/karaf/log/core/internal/LogServiceImpl.java 
b/log/src/main/java/org/apache/karaf/log/core/internal/LogServiceImpl.java
index bf0eb76203..91177bda41 100644
--- a/log/src/main/java/org/apache/karaf/log/core/internal/LogServiceImpl.java
+++ b/log/src/main/java/org/apache/karaf/log/core/internal/LogServiceImpl.java
@@ -117,6 +117,8 @@ public class LogServiceImpl implements LogService, 
PaxAppender {
             cfg.update(props);
         } catch (IOException e) {
             throw new RuntimeException("Error writing log config to config 
admin", e);
+        } catch (UnsupportedOperationException e) {
+            // ignore because it can only happen in the case of static 
distribution
         }
     }
 

Reply via email to