cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From daserge <...@git.apache.org>
Subject [GitHub] cordova-cli pull request: CB-9784 Remove CLI logger levels prefixe...
Date Tue, 13 Oct 2015 06:40:06 GMT
Github user daserge commented on a diff in the pull request:

    https://github.com/apache/cordova-cli/pull/224#discussion_r41831327
  
    --- Diff: src/logger.js ---
    @@ -59,13 +58,12 @@ function formatError(error, isVerbose) {
     logger.log = function (logLevel, message) {
         if (this.levels[logLevel] >= this.levels[this.logLevel]) {
             var isVerbose = this.logLevel === 'verbose';
    -        var prefix = this.prefixes[logLevel] ? this.prefixes[logLevel] + ': ' : '';
     
             if(message instanceof Error) {
                 message = formatError(message, isVerbose);
             }
     
    -        message = prefix + message + EOL;
    +        message = message + EOL;
     
             if (!this.cursor) {
                 this.output.write(message);
    --- End diff --
    
    That's a good point - I've implemented `stdout/stderr` split.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org
For additional commands, e-mail: dev-help@cordova.apache.org


Mime
View raw message