egg-logger
Advanced tools
Comparing version 2.3.1 to 2.3.2
2.3.2 / 2019-02-28 | ||
================== | ||
**fixes** | ||
* [[`f51216b`](http://github.com/eggjs/egg-logger/commit/f51216bd84d48f75e44ebe2e1208c308d1969dce)] - fix: crash when format a getter-only error stack (#50) (Khaidi Chu <<i@2333.moe>>) | ||
**others** | ||
* [[`858a8b4`](http://github.com/eggjs/egg-logger/commit/858a8b46495fed21efb4215e36764b3030e573ee)] - chore: comments typo fix (#47) (Jeff <<jeff.tian@outlook.com>>) | ||
2.3.1 / 2019-01-03 | ||
@@ -3,0 +12,0 @@ ================== |
@@ -77,3 +77,3 @@ 'use strict'; | ||
* - {Function} formatter | ||
* @return {Buffer} formated log string buffer | ||
* @return {Buffer} formatted log string buffer | ||
*/ | ||
@@ -144,5 +144,5 @@ format(level, args, meta, options) { | ||
} | ||
err.stack = err.stack || 'no_stack'; | ||
// name and stack could not be change on node 0.11+ | ||
const errStack = err.stack; | ||
const errStack = err.stack || 'no_stack'; | ||
const errProperties = Object.keys(err).map(key => inspect(key, err[key])).join('\n'); | ||
@@ -149,0 +149,0 @@ return util.format('nodejs.%s: %s\n%s\n%s\npid: %s\nhostname: %s\n', |
{ | ||
"name": "egg-logger", | ||
"version": "2.3.1", | ||
"version": "2.3.2", | ||
"description": "egg logger", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
48500
1221