Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 3380A200BEC for ; Wed, 14 Dec 2016 19:01:09 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 32324160B0D; Wed, 14 Dec 2016 18:01:09 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 7E072160B19 for ; Wed, 14 Dec 2016 19:01:08 +0100 (CET) Received: (qmail 91331 invoked by uid 500); 14 Dec 2016 18:01:07 -0000 Mailing-List: contact issues-help@drill.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.apache.org Delivered-To: mailing list issues@drill.apache.org Received: (qmail 91286 invoked by uid 99); 14 Dec 2016 18:01:07 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Dec 2016 18:01:07 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 5FCDF2C03E5 for ; Wed, 14 Dec 2016 18:01:07 +0000 (UTC) Date: Wed, 14 Dec 2016 18:01:07 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DRILL-5114) Rationalize use of Logback logging in unit tests MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 14 Dec 2016 18:01:09 -0000 [ https://issues.apache.org/jira/browse/DRILL-5114?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15748997#comment-15748997 ] ASF GitHub Bot commented on DRILL-5114: --------------------------------------- Github user chunhui-shi commented on a diff in the pull request: https://github.com/apache/drill/pull/683#discussion_r92451193 --- Diff: exec/memory/base/src/test/resources/logback-test.xml --- @@ -0,0 +1,42 @@ + --- End diff -- Why could not the test here use existing logback-test.xml? > Rationalize use of Logback logging in unit tests > ------------------------------------------------ > > Key: DRILL-5114 > URL: https://issues.apache.org/jira/browse/DRILL-5114 > Project: Apache Drill > Issue Type: Improvement > Affects Versions: 1.8.0 > Reporter: Paul Rogers > Assignee: Paul Rogers > Priority: Minor > > Drill uses Logback as its logger. The logger is used in several to display some test output. Test output is sent to stdout, rather than a log file. Since Drill also uses Logback, that same configuration sends much Drill logging output to stdout as well, cluttering test output. > Logback requires that that one Logback config file (either logback.xml or hogback-test.xml) exist on the class path. Tests store the config file in the src/test/resources folder of each sub-project. > These files set the default logging level to debug. While this setting is fine when working with individual tests, the output is overwhelming for bulk test runs. > The first requested change is to set the default logging level to error. > The existing config files are usually called "logback.xml." Change the name of test files to "logback-test.xml" to make clear that they are, in fact, test configs. > The {{exec/java-exec/src/test/resources/logback.xml}} config file is a full version of Drill's production config file. Replace this with a config suitable for testing (that is, the same as other modules.) > The java-exec project includes a production-like config file in its non-test sources: {{exec/java-exec/src/main/resources/logback.xml}}. Remove this as it is not needed. (Instead, rely on the one shipped in the distribution subsystem, which is the one copied to the Drill distribution.) > Since Logback complains bitterly (via many log messages) when it cannot find a configuration file (and each sub-module must have its own test configuration), add missing logging configuration files: > * exec/memory/base/src/test/resources/logback-test.xml > * logical/src/test/resources/logback-test.xml -- This message was sent by Atlassian JIRA (v6.3.4#6332)