sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pa...@apache.org
Subject [sling-org-apache-sling-feature-launcher] branch master updated: Fix debug log.
Date Tue, 08 May 2018 14:03:50 GMT
This is an automated email from the ASF dual-hosted git repository.

pauls pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-feature-launcher.git


The following commit(s) were added to refs/heads/master by this push:
     new d17f814  Fix debug log.
d17f814 is described below

commit d17f81415af15255cbcc69d7a3aedac820002fa3
Author: Karl Pauls <karlpauls@gmail.com>
AuthorDate: Tue May 8 16:03:39 2018 +0200

    Fix debug log.
---
 .../java/org/apache/sling/feature/launcher/impl/Main.java  | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/main/java/org/apache/sling/feature/launcher/impl/Main.java b/src/main/java/org/apache/sling/feature/launcher/impl/Main.java
index 6593319..39d6f40 100644
--- a/src/main/java/org/apache/sling/feature/launcher/impl/Main.java
+++ b/src/main/java/org/apache/sling/feature/launcher/impl/Main.java
@@ -71,7 +71,6 @@ public class Main {
      * @return Configuration object.
      */
     private static void parseArgs(final LauncherConfig config, final String[] args) {
-        Main.LOG().info("Assembling configuration...");
         final Options options = new Options();
 
         final Option repoOption =  new Option("u", true, "Set repository url");
@@ -79,9 +78,9 @@ public class Main {
         final Option appOption =  new Option("a", true, "Set application file");
         final Option fwkProperties = new Option("D", true, "Set framework properties");
         fwkProperties.setArgs(20);
-        final Option debugOption = new Option("v", true, "Verbose");
+        final Option debugOption = new Option("v", false, "Verbose");
         debugOption.setArgs(0);
-        final Option installerOption = new Option("I", true, "Use OSGi installer for additional
artifacts.");
+        final Option installerOption = new Option("I", false, "Use OSGi installer for additional
artifacts.");
         installerOption.setArgs(0);
         options.addOption(repoOption);
         options.addOption(appOption);
@@ -111,7 +110,6 @@ public class Main {
             }
             if ( cl.hasOption(debugOption.getOpt()) ) {
                 System.setProperty("org.slf4j.simpleLogger.defaultLogLevel", "debug");
-                LOGGER = null;
             }
             if ( cl.hasOption(installerOption.getOpt()) ) {
                 config.setUseInstaller();
@@ -131,14 +129,16 @@ public class Main {
         System.setProperty("org.slf4j.simpleLogger.showThreadName", "false");
         System.setProperty("org.slf4j.simpleLogger.levelInBrackets", "true");
         System.setProperty("org.slf4j.simpleLogger.showLogName", "false");
-        Main.LOG().info("");
-        Main.LOG().info("Apache Sling Application Launcher");
-        Main.LOG().info("---------------------------------");
 
         // check if launcher has already been created
         final LauncherConfig launcherConfig = new LauncherConfig();
         parseArgs(launcherConfig, args);
 
+
+        Main.LOG().info("");
+        Main.LOG().info("Apache Sling Application Launcher");
+        Main.LOG().info("---------------------------------");
+
         ArtifactManager artifactManager = null;
         try {
 

-- 
To stop receiving notification emails like this one, please contact
pauls@apache.org.

Mime
View raw message