You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looks like the numbers formatter always fails when using decimals.
It should never fail, even if the decimal is not provided.
$log.getInstance('main').info('===> This works: "%s"',"string text");$log.getInstance('main').info('===> This fails: "%d"',10);
Stack trace:
"June 19, 2016 3:44 PM::[main]> ""Error: [sprintf] expecting number but found undefined[4]</</sprintf.format@http://localhost:3000/bower_components/angular-logger/dist/angular-logger.js:3893:1sprintf@http://localhost:3000/bower_components/angular-logger/dist/angular-logger.js:3860:16[2]</</LoggingEnhancer/self.countSprintfHolders@http://localhost:3000/bower_components/angular-logger/dist/angular-logger.js:215:1maybeApplySprintf@http://localhost:3000/bower_components/angular-logger/dist/angular-logger.js:158:31enhanceLogline@http://localhost:3000/bower_components/angular-logger/dist/angular-logger.js:149:25[2]</</LoggingEnhancer/this.enhanceLogging/<@http://localhost:3000/bower_components/angular-logger/dist/angular-logger.js:122:30[...]
" "===> This fails: "%d"" 10
The text was updated successfully, but these errors were encountered:
@Toub angular-logger uses whatever version of sprintf you are currently using. It seems an issue with sprintf. Can you try with some other versions as well?
On a sidenote, I also released a new patch version, 1.3.2.
Looks like the numbers formatter always fails when using decimals.
It should never fail, even if the decimal is not provided.
Stack trace:
The text was updated successfully, but these errors were encountered: