Skip to content

Commit

Permalink
NIFI-9073 - Limit Surefire Output during Build
Browse files Browse the repository at this point in the history
This closes apache#5325

Signed-off-by: David Handermann <[email protected]>
  • Loading branch information
greyp9 authored and exceptionfactory committed Aug 24, 2021
1 parent 1d1b805 commit aa5babb
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@


<logger name="org.apache.nifi" level="INFO"/>
<logger name="org.apache.nifi.remote.client" level="DEBUG"/>
<logger name="org.apache.nifi.remote.client" level="INFO"/>
<logger name="org.apache.nifi.remote.client.PeerSelectorTest" level="DEBUG"/>

<root level="INFO">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,11 @@ class EncryptedFileSystemRepositoryTest {
static void setUpOnce() throws Exception {
Assume.assumeTrue("Test only runs on *nix", !SystemUtils.IS_OS_WINDOWS)
ORIGINAL_LOG_LEVEL = System.getProperty(LOG_PACKAGE)
System.setProperty(LOG_PACKAGE, "DEBUG")

Security.addProvider(new BouncyCastleProvider())

logger.metaClass.methodMissing = { String name, args ->
logger.info("[${name?.toUpperCase()}] ${(args as List).join(" ")}")
logger.debug("[${name?.toUpperCase()}] ${(args as List).join(" ")}")
}

mockCipherProvider = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public class TestStandardFlowFileQueue {

@BeforeClass
public static void setupLogging() {
System.setProperty("org.slf4j.simpleLogger.log.org.apache.nifi", "DEBUG");
System.setProperty("org.slf4j.simpleLogger.log.org.apache.nifi", "INFO");
}

@Before
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

<configuration>
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
<pattern>%-4r [%t] %-5p %c{3} - %m%n</pattern>
</encoder>
</appender>

<root level="INFO">
<appender-ref ref="CONSOLE"/>
</root>

</configuration>
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# limitations under the License.
#

log4j.rootLogger=DEBUG,console,test
log4j.rootLogger=INFO,console,test

log4j.appender.console=org.apache.log4j.ConsoleAppender
log4j.appender.console.Target=System.err
Expand Down

0 comments on commit aa5babb

Please sign in to comment.