cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From daserge <...@git.apache.org>
Subject [GitHub] cordova-lib pull request: CB-10791 Add adjustLoggerLevel to cordov...
Date Thu, 10 Mar 2016 09:40:08 GMT
Github user daserge commented on a diff in the pull request:

    https://github.com/apache/cordova-lib/pull/405#discussion_r55654358
  
    --- Diff: cordova-common/src/CordovaLogger.js ---
    @@ -153,6 +153,30 @@ CordovaLogger.prototype.setLevel = function (logLevel) {
     };
     
     /**
    + * Adjusts the current logger level according to the passed options.
    + *
    + * @param   {Object|Array}  opts  An object or args array with options
    + *
    + * @return  {CordovaLogger}     Current instance, to allow calls chaining.
    + */
    +CordovaLogger.prototype.adjustLoggerLevel = function (opts) {
    +    if (opts instanceof Array) {
    +        opts.silent = opts.indexOf('--silent') !== -1;
    --- End diff --
    
    Updated, thank you Jesse!


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