Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F223F17DD6 for ; Wed, 6 May 2015 21:11:01 +0000 (UTC) Received: (qmail 66359 invoked by uid 500); 6 May 2015 21:11:01 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 66347 invoked by uid 500); 6 May 2015 21:11:01 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 66172 invoked by uid 99); 6 May 2015 21:11:01 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 May 2015 21:11:01 +0000 Date: Wed, 6 May 2015 21:11:01 +0000 (UTC) From: "Rob Paveza (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CB-8763) Unable to use console logging with hooks when using exports MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-8763?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rob Paveza resolved CB-8763. ---------------------------- Resolution: Won't Fix Resolving as Won't Fix - By Design. > Unable to use console logging with hooks when using exports > ----------------------------------------------------------- > > Key: CB-8763 > URL: https://issues.apache.org/jira/browse/CB-8763 > Project: Apache Cordova > Issue Type: Bug > Components: CLI > Reporter: Raymond Camden > Assignee: Rob Paveza > Priority: Minor > > I was testing Holly's after_platform_add hook and decided to rewrite it inside a module.exports format. This is what the hook's ReadMe.md guide recommends. When I did that, I noticed that my console.log messages stopped working. I posted this on the dev group and Shazron noted: > https://github.com/apache/cordova-lib/blob/d77ebc40a16ab27a8ed22c0bbf2ab8a84a5ac448/cordova-lib/src/hooks/HooksRunner.js#L188 > "It's using child_process.spawn (if you dig down) and is probably > ignoring all stdio when running the script. > actually it has stdio:inherit, and does capture the output and pushes > it back up the chain, so somewhere up the chain no one does anything > with it" > Apparently there is no workaround for this currently. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org