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

jbonofre 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 b7764d30c8 Fix Main.LOG reference (#2630)
b7764d30c8 is described below

commit b7764d30c8b05013c7a65a28a236e81ae1af8cc9
Author: Robert Varga <[email protected]>
AuthorDate: Wed May 6 06:12:39 2026 +0200

    Fix Main.LOG reference (#2630)
    
    This is a constant reference, do not use the inclosing object to
    reference it.
    
    Signed-off-by: Robert Varga <[email protected]>
---
 main/src/main/java/org/apache/karaf/main/Main.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/main/src/main/java/org/apache/karaf/main/Main.java 
b/main/src/main/java/org/apache/karaf/main/Main.java
index 2fe5717216..e96f1d31ec 100644
--- a/main/src/main/java/org/apache/karaf/main/Main.java
+++ b/main/src/main/java/org/apache/karaf/main/Main.java
@@ -185,7 +185,7 @@ public class Main {
                 // Also log to sytem.err in case logging is not yet initialized
                 System.err.println(ex.getMessage());
 
-                main.LOG.log(Level.SEVERE, "Could not launch framework", ex);
+                LOG.log(Level.SEVERE, "Could not launch framework", ex);
                 main.destroy();
                 main.setExitCode(-1);
             }

Reply via email to