cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dblotsky <...@git.apache.org>
Subject [GitHub] cordova-windows pull request: CB-10640: Windows logging is broken
Date Wed, 17 Feb 2016 23:17:54 GMT
Github user dblotsky commented on a diff in the pull request:

    https://github.com/apache/cordova-windows/pull/151#discussion_r53248411
  
    --- Diff: template/cordova/lib/log.js ---
    @@ -47,10 +47,10 @@ var appTracingInitialState = null,
      * and prints them to console
      */
     module.exports.run = function(args) {
    -    var startTime = new Date(new Date().getTime() - 10 * 60 * 1000).toISOString(), //
show last 10 minutes by default
    -        knownOpts = { 'minutes' : Number, 'dump' : Boolean, 'help' : Boolean },
    -        shortHands = { 'mins' : ['--minutes'], 'h' : ['--help'] },
    -        parsedOpts = nopt(knownOpts, shortHands, args, 0);
    +    var logFromTime = 10 * 60 * 1000; // show last 10 minutes by default
    --- End diff --
    
    Might be useful to define `ONE_MINUTE` and then just say `10 * ONE_MINUTE` or `parsedOpts.minutes
* ONE_MINUTE`, in order to avoid duplication of `60 * 1000`.


---
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