Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed issue #53

  • Loading branch information...
commit c11340b13ab1809f779a70d7836c070e29ce397d 1 parent 43d2e36
@39dotyt 39dotyt authored
Showing with 4 additions and 2 deletions.
  1. +3 −1 lib/helpers.js
  2. +1 −1  package.json
View
4 lib/helpers.js
@@ -17,7 +17,7 @@ exports.prepareMetaData = function(meta) {
makeObjectNonCircular(meta);
cleanFieldNames(meta);
}
- var prepared = common.clone(meta);
+ var prepared = {};
if (meta instanceof Error) {
// This needed because Error's message, name and stack isn't
// accessible through cycling properties and "common.clone" doesn't
@@ -25,6 +25,8 @@ exports.prepareMetaData = function(meta) {
prepared.message = meta.message;
prepared.name = meta.name;
prepared.stack = meta.stack;
+ } else {
+ prepared = common.clone(meta);
}
return prepared;
};
View
2  package.json
@@ -1,7 +1,7 @@
{
"name": "winston-mongodb",
"license": "MIT",
- "version": "1.1.1",
+ "version": "1.1.2",
"description": "A MongoDB transport for winston",
"author": "Charlie Robbins <charlie.robbins@gmail.com>",
"contributors": [

0 comments on commit c11340b

Please sign in to comment.
Something went wrong with that request. Please try again.