Commit graph

646 commits

Author SHA1 Message Date
Trent Mick
5d666f49f1 update tests to run against some io.js versions. Minor test case fix for io.js slight diff to 0.12. 2015-06-07 11:06:50 -07:00
Stéphan Kochen
3f8ff80c8c Upgrade to dtrace-provider 0.5.
Fixes #259. Fixes #258.
2015-06-07 11:03:50 -07:00
Trent Mick
e71890562e fix some test failures 2015-06-04 00:35:18 -07:00
Trent Mick
15f2bb1133 prep for future dev 2015-06-01 22:13:17 -07:00
Trent Mick
29ddf443af prepare for 1.3.6 release 2015-06-01 22:13:00 -07:00
Trent Mick
d41f15bcd7 A follow-up to #250 to indicate the 'ms' log rotation scope is just for testing 2015-05-12 21:38:52 -07:00
Tony Lukasavage
f82ccfcd4f add undocumented "ms" rotation period to docs 2015-05-12 18:55:11 -04:00
Trent Mick
762e26713c Make bunyan defensive on res.header=null.
Fixes #244.
Also add test case for this and a couple recent `bunyan` crashers.
2015-04-15 09:21:31 -07:00
Trent Mick
a5bc7911d3 prep for future dev 2015-04-12 22:18:52 -07:00
Trent Mick
98430d708a prepare for 1.3.5 release 2015-04-12 22:18:39 -07:00
Trent Mick
d820b03dcd Make bunyan defensive on res.header as a boolean. Fixes #233 2015-04-12 21:43:01 -07:00
Trent Mick
24528aa638 Be defensive on err.stack not being a string. Fixes #242. 2015-04-12 21:34:16 -07:00
Trent Mick
6f81f4b1e1 TODO 2015-04-12 21:21:13 -07:00
Trent Mick
2828e462aa prep for future dev 2015-02-20 14:55:15 -08:00
Trent Mick
46b0162368 prepare for 1.3.4 release 2015-02-20 14:54:57 -08:00
Trent Mick
c25ce3a5bd Allow log.child(...) to work even if the logger is a *sub-class* of Bunyan's Logger class. 2015-02-20 14:52:37 -08:00
Trent Mick
a7c646191d Hide 'source-map-support' require from browserify. Fixes #219 2015-02-19 20:41:34 -08:00
Seth Pollack
ef669b6660 add third-party stream for fogbugz 2015-02-08 13:51:09 -05:00
Trent Mick
22669dbd32 Reset haveNonRawStreams on <logger>.addStream
Fixed #218
2015-02-05 21:45:55 -08:00
Trent Mick
265c42f58f Merge pull request #221 from sethpollack/patch-1
add third-party stream for slack
2015-01-28 14:36:26 -08:00
Seth Pollack
3d786a84f0 add third-party stream for slack 2015-01-28 16:49:53 -05:00
Trent Mick
6cabaa9a0b prep for future dev 2015-01-26 09:24:03 -08:00
Trent Mick
e6cff79167 prepare for 1.3.3 release 2015-01-26 09:23:52 -08:00
Trent Mick
b7cacf6f7f changelog for recent change; TODO 2015-01-25 21:18:50 -08:00
Rui Marinho
df5044d4dc Update dtrace-provider@0.4.0
Adds io.js support.

Closes #212.
2015-01-24 00:21:50 +00:00
Trent Mick
ffd9903d74 prep for future dev 2015-01-18 23:29:43 -08:00
Trent Mick
8598a479ed prepare for 1.3.2 release 2015-01-18 23:29:33 -08:00
Trent Mick
64b8fd1004 test cases for #182, style tweaks, changelog, etc. 2015-01-18 23:27:28 -08:00
Martin Gausby
c0ca774238 Defend against throwing defined props in stringify
If an object has a defined property, that is enumerable, and this
property throws an error, it will make JSON stringify throw an
error, and potentially bring down the program.

The solution so far is to try-catch with the usual json stringifyer,
that guards against circular references. If this throws an error
we will attempt to guard against defined properties; and return
[Throws] if a property throws an error when accesed.

The following examples illustrate the problem:

```js
var obj = {};
obj.__defineGetter__('foo', function() { throw new Error('ouch!'); });

JSON.stringify(obj.foo); // error thrown
```

And using `Object.defineProperty`:
```js
var obj = {};
Object.defineProperty(obj, 'foo', {
    get: function() { throw new Error('ouch!'); }
    enumerable: true // enumerable is false by default
});

JSON.stringify(obj.foo); // error thrown
```

The cases we have seen in production is third party modules that
has enumerable getters that try to access properties on undefined
objects.

Fixes #182.
2015-01-18 23:27:06 -08:00
Trent Mick
a96a1d50b3 Make it more clear that you can run most of the test suite without root and how to skip the root-y parts. 2015-01-18 21:24:38 -08:00
Trent Mick
bed6fbfb66 prep for future dev 2015-01-17 22:05:16 -08:00
Trent Mick
d61fd2f473 prepare for 1.3.1 release 2015-01-17 22:05:06 -08:00
Trent Mick
08a4bab1ba fix 'make check' 2015-01-17 22:04:39 -08:00
Trent Mick
b9e3a0d3cb export 'bunyan.RotatingFileStream' 2015-01-17 21:56:46 -08:00
Trent Mick
83f33890de added integration with source-map-support for integration with sourcemaps
Style updates, changelog, etc. Fixes #122
2015-01-17 21:15:38 -08:00
Trent Mick
1ed684d110 Ensure a top-level level given in bunyan.createLogger is *used* for given streams
Fixes #164
2015-01-17 20:39:06 -08:00
Trent Mick
b975c3a9f8 prep for future dev 2015-01-17 13:34:33 -08:00
Trent Mick
6b9ce6162b prepare for 1.3.0 release 2015-01-17 13:34:24 -08:00
Trent Mick
838b1995ef correct version 2015-01-17 13:34:02 -08:00
Trent Mick
f4b97a4952 fix 'make check'; correct version 2015-01-17 13:33:12 -08:00
Trent Mick
28e52193c6 meta data prepping for release 2015-01-16 23:02:29 -08:00
Trent Mick
132444dec3 update docs for recent '-L' option addition 2015-01-16 22:38:14 -08:00
Trent Mick
da440c9324 Merge pull request #203 from cb1kenobi/useless_level
Removed useless level check.
2015-01-16 22:33:45 -08:00
Trent Mick
7dfde13ac3 Correct error added in commit d77f8247
Also, bump minor ver for `-L` CLI addition and coming release.
2015-01-16 22:31:50 -08:00
Trent Mick
978a2439a3 Merge pull request #204 from cb1kenobi/readme-typo
Fixed typo in the readme.
2015-01-16 22:27:11 -08:00
Trent Mick
0d040acb3a bunyan -L (or bunyan --time local) to show local time.
Fixes #103
2015-01-16 22:21:23 -08:00
Trent Mick
d412ecef12 improve 'the bunyan cli has crashed' messaging 2015-01-16 21:08:42 -08:00
Trent Mick
d77f824723 improve rotating-file assert on 'count' field
Fixes #207, #208
2015-01-16 09:00:13 -08:00
Trent Mick
783b1c4e39 prep for future dev 2015-01-15 22:20:21 -08:00
Trent Mick
a70c0eb969 prepare for 1.2.4 release 2015-01-15 22:20:11 -08:00