diff --git a/pom.xml b/pom.xml index 9d910fc20..5f9f63425 100644 --- a/pom.xml +++ b/pom.xml @@ -49,7 +49,7 @@ UTF-8 11 - 1.1.6 + 1.1.7 1.7.30 2.17.1 diff --git a/src/main/java/com/zebrunner/carina/core/listeners/CarinaListener.java b/src/main/java/com/zebrunner/carina/core/listeners/CarinaListener.java index 6b33aa90e..1b30f8ef2 100644 --- a/src/main/java/com/zebrunner/carina/core/listeners/CarinaListener.java +++ b/src/main/java/com/zebrunner/carina/core/listeners/CarinaListener.java @@ -147,8 +147,15 @@ public CarinaListener() { org.apache.logging.log4j.core.config.Configuration config = ctx.getConfiguration(); LoggerConfig logger = config.getLoggerConfig("com.zebrunner.carina.core"); logger.setLevel(Level.getLevel(Configuration.getRequired(ReportConfiguration.Parameter.CORE_LOG_LEVEL))); - } + if ("DEBUG".equalsIgnoreCase(Configuration.getRequired(ReportConfiguration.Parameter.CORE_LOG_LEVEL))) { + config.getLoggerConfig("io.netty") + .setLevel(Level.OFF); + config.getLoggerConfig("org.asynchttpclient.netty") + .setLevel(Level.OFF); + } + } + try { L10N.load(); } catch (Exception e) { @@ -214,6 +221,10 @@ public void onStart(ISuite suite) { // register owner of the run registerOwner(); + + // register branch if available + Configuration.get("branch") + .ifPresent(branch -> Label.attachToTestRun("Branch", branch)); /* * To support multi-suite declaration as below we have to init test run labels at once only! diff --git a/src/main/resources/config.properties b/src/main/resources/config.properties index 8493d34ec..63a0ec8d6 100644 --- a/src/main/resources/config.properties +++ b/src/main/resources/config.properties @@ -21,3 +21,6 @@ retry_count=0 thread_count=-1 data_provider_thread_count=-1 test_run_rules=NULL +#============ Other Parameters ==============# +#Note: this parameters should not be added to the Configuration classes +branch=NULL diff --git a/src/main/resources/log4j2.xml b/src/main/resources/log4j2.xml index 2767c760e..e82f07c58 100644 --- a/src/main/resources/log4j2.xml +++ b/src/main/resources/log4j2.xml @@ -16,12 +16,22 @@ - + + + + + + + + + + +