Skip to content

Commit

Permalink
v1.8.4; fix 'src' usage with node v7
Browse files Browse the repository at this point in the history
Fixes #454
  • Loading branch information
trentm committed Oct 25, 2016
1 parent e0f0a5d commit c04e843
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 7 deletions.
5 changes: 5 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ Known issues:
## not yet released


## 1.8.4

- [issue #454] Fix `src` usage with node v7.


## 1.8.3

- [issue #450] Fix `log.info(null)` crash that resulted from #426 in v1.8.2.
Expand Down
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,13 @@ test: $(NODEUNIT)
# Note: 'test4' is last so (if all is well) I end up with a binary
# dtrace-provider build for my current default node version.
.PHONY: testall
testall: test6 test012 test010 test4
testall: test7 test6 test012 test010 test4

.PHONY: test7
test7:
@echo "# Test node 7.x (with node `$(NODEOPT)/node-7/bin/node --version`)"
@$(NODEOPT)/node-7/bin/node --version | grep '^v7\.'
PATH="$(NODEOPT)/node-7/bin:$(PATH)" make distclean all test
.PHONY: test6
test6:
@echo "# Test node 6.x (with node `$(NODEOPT)/node-6/bin/node --version`)"
Expand Down
6 changes: 3 additions & 3 deletions bin/bunyan
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env node
/**
* Copyright 2016 Trent Mick. All rights reserved.
* Copyright 2016 Joyent Inc. All rights reserved.
* Copyright 2016 Trent Mick
* Copyright 2016 Joyent Inc.
*
* bunyan -- filter and pretty-print Bunyan log files (line-delimited JSON)
*
Expand All @@ -11,7 +11,7 @@
* vim: expandtab:ts=4:sw=4
*/

var VERSION = '1.8.3';
var VERSION = '1.8.4';

var p = console.log;
var util = require('util');
Expand Down
5 changes: 3 additions & 2 deletions lib/bunyan.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* vim: expandtab:ts=4:sw=4
*/

var VERSION = '1.8.3';
var VERSION = '1.8.4';

/*
* Bunyan log format version. This becomes the 'v' field on all log records.
Expand Down Expand Up @@ -186,7 +186,6 @@ function getCaller3Info() {
var saveLimit = Error.stackTraceLimit;
var savePrepare = Error.prepareStackTrace;
Error.stackTraceLimit = 3;
Error.captureStackTrace(this, getCaller3Info);

Error.prepareStackTrace = function (_, stack) {
var caller = stack[2];
Expand All @@ -199,7 +198,9 @@ function getCaller3Info() {
if (func)
obj.func = func;
};
Error.captureStackTrace(this, getCaller3Info);
this.stack;

Error.stackTraceLimit = saveLimit;
Error.prepareStackTrace = savePrepare;
return obj;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bunyan",
"version": "1.8.3",
"version": "1.8.4",
"description": "a JSON logging library for node.js services",
"author": "Trent Mick <trentm@gmail.com> (http://trentm.com)",
"main": "./lib/bunyan.js",
Expand Down

0 comments on commit c04e843

Please sign in to comment.