Skip to content

Commit aee5861

Browse files
committed
Restore rec.v field in log record
1 parent 3354294 commit aee5861

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

CHANGES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# bunyan Changelog
22

3+
## 1.0.1
4+
- Major README updates
5+
- Restore missing `v` field in log record
6+
37
## 1.0.0
48
- Internals reworked. Better modularization, some ES6 features. Packaged with Rollup
59
- ES Modules interface.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "browser-bunyan",
3-
"version": "1.0.0-pre",
3+
"version": "1.0.1",
44
"description": "Bunyan logging specifically for the browser",
55
"author": "Phil Mander <philip.mander@gmail.com>",
66
"main": "./lib/index.js",

src/logger.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import { TRACE, DEBUG, INFO, WARN, ERROR, FATAL, nameFromLevel, resolveLevel} fr
22
import { format, _haveWarned, _warn, extractSrcFromStacktrace, _indent, objCopy, safeCycles, CALL_STACK_ERROR } from './util';
33
import { ConsoleRawStream} from './console-raw-stream';
44

5+
const LOG_VERSION = 0;
6+
57
//---- Logger class
68

79
/**
@@ -489,6 +491,7 @@ function mkLogEmitter(minLevel) {
489491
rec.src = src || '';
490492
}
491493
}
494+
rec.v = LOG_VERSION;
492495
return rec;
493496
}
494497

0 commit comments

Comments
 (0)