cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rob Paveza (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CB-8763) Unable to use console logging with hooks when using exports
Date Wed, 06 May 2015 21:11:01 GMT

     [ 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


Mime
View raw message