From user-return-19116-archive-asf-public=cust-asf.ponee.io@karaf.apache.org Mon Aug 27 19:28:34 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 9152E180674 for ; Mon, 27 Aug 2018 19:28:33 +0200 (CEST) Received: (qmail 22401 invoked by uid 500); 27 Aug 2018 17:28:27 -0000 Mailing-List: contact user-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@karaf.apache.org Delivered-To: mailing list user@karaf.apache.org Received: (qmail 22391 invoked by uid 99); 27 Aug 2018 17:28:27 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Aug 2018 17:28:27 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 415E71A0826 for ; Mon, 27 Aug 2018 17:28:27 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 4.001 X-Spam-Level: **** X-Spam-Status: No, score=4.001 tagged_above=-999 required=6.31 tests=[HEADER_FROM_DIFFERENT_DOMAINS=0.001, KAM_LAZY_DOMAIN_SECURITY=1, RDNS_NONE=3] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id OtMEb6r9BMKY for ; Mon, 27 Aug 2018 17:28:25 +0000 (UTC) Received: from blaine.gmane.org (unknown [195.159.176.226]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 9C5305F39F for ; Mon, 27 Aug 2018 17:28:24 +0000 (UTC) Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1fuLHH-0006qg-UC for user@karaf.apache.org; Mon, 27 Aug 2018 19:26:11 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: user@karaf.apache.org To: user@karaf.apache.org From: Steinar Bang Subject: Re: Karaf pax exam test works locally but fails on travis-ci Date: Mon, 27 Aug 2018 19:28:16 +0200 Organization: Probably a good idea Lines: 26 Message-ID: <86bm9ng1n3.fsf@dod.no> References: <861sakhn78.fsf@dod.no> <86sh2zg9p3.fsf@dod.no> <86ftyzg1yh.fsf@dod.no> Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: usenet@blaine.gmane.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (windows-nt) Mail-Copies-To: never Cancel-Lock: sha1:StgYyunWV04hViaxEVuYGr10KTY= >>>>> Steinar Bang : >> It would have been nice to be able to get the karaf.log from the pax >> exam test. But I don't know how to do that on travis. > I looked into redirecting karaf.log to the console, so that it would end > up in the console log in travis. > But it looks like I'm already routing the karaf output to the console: > 1. The pax exam karaf config points to a new configuration file fetched > from the resource classpath > https://github.com/steinarb/ukelonn/blob/5755236cc036bc256348dc6d7b38ff2c95748a97/ukelonn.tests/src/test/java/no/priv/bang/ukelonn/tests/UkelonnServiceIntegrationTest.java#L75 > 2. The replacement file already includes Console in the > log4j2.rootLogger.appenderRefs > https://github.com/steinarb/ukelonn/blob/5755236cc036bc256348dc6d7b38ff2c95748a97/ukelonn.tests/src/test/resources/etc/org.ops4j.pax.logging.cfg#L28 Looking at the karaf.log resulting from a local run, the karaf.log has *lots* of stuff not output to the console. So the above config is not enough to make karaf output everything to the console. And the interesting stuff about why the pax exam karaf instance won't start is probably to be found in the karaf.log. Hm...