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

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


The following commit(s) were added to refs/heads/main by this push:
     new 47bfc03f4e KARAF-8001: catch UnsupportedOperationException in 
LogService as it can happen in the case of static distribution (#2070)
47bfc03f4e is described below

commit 47bfc03f4e907872d273510dffae2491b40be648
Author: JB Onofré <[email protected]>
AuthorDate: Mon Sep 29 17:53:11 2025 +0200

    KARAF-8001: catch UnsupportedOperationException in LogService as it can 
happen in the case of static distribution (#2070)
---
 .../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