Skip to content

Commit

Permalink
v0.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmonstar committed Feb 12, 2014
1 parent 1688327 commit 5fe0d97
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@

## Current dev

## v0.5.1 - 2014-02-11
## v0.5.1 - 2014-02-12

- added bgMagenta to TRACE
- added bgBlue to TRACE
- changed uncaught exceptions log level to CRITICAL
- fixed error if null was passed an argument to Logger.log()

## v0.5.0 - 2014-02-10

Expand Down
2 changes: 1 addition & 1 deletion lib/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ var proto = {
var i = args.length;
var trace;
while (i--) {
if (util.isError(args[i]) || args[i][STACK_SYMBOL]) {
if (args[i] && (util.isError(args[i]) || args[i][STACK_SYMBOL])) {
trace = args[i];
break;
}
Expand Down
4 changes: 2 additions & 2 deletions test/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,10 @@ module.exports = {
var spyA = spy();
a.addHandler({ handle: spyA, level: 0 });

a.info('foo', { bar: 'baz' });
a.info('foo', { bar: 'baz' }, null);

assert.equal(spyA.getCallCount(), 1);
assert.equal(spyA.getLastArgs()[0].message, "foo { bar: 'baz' }");
assert.equal(spyA.getLastArgs()[0].message, "foo { bar: 'baz' } null");
},
'should be usable without alias': function() {
var n = unique();
Expand Down

0 comments on commit 5fe0d97

Please sign in to comment.