Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad parameters management #1

Closed
GallyNet opened this issue Oct 4, 2017 · 1 comment
Closed

Bad parameters management #1

GallyNet opened this issue Oct 4, 2017 · 1 comment

Comments

@GallyNet
Copy link

GallyNet commented Oct 4, 2017

When you call the logger with parameters, the display is not as expected :

this.logger('First parameter : %o, second one : %o', 42, 'foo'); 

the result must be something like :

First parameter : 42, second one : foo

but we get 👍

First parameter : array[2], second one : %o

A correction, in logger.js :

Logger.prototype.warn = function (name) {
   var data = [name, level_1.Level.WARN];
   for (var _i = 1; _i < arguments.length; _i++) {
       data.push(arguments[_i]);
   }
   return this._logMessage.apply(this, data);
};
@silibdev
Copy link
Owner

silibdev commented Jul 5, 2018

This has been fixed in 1.1.1

(Sorry for the late anwser)

@silibdev silibdev closed this as completed Jul 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants