File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -17,14 +17,16 @@ exports.prepareMetaData = function(meta) {
17
17
makeObjectNonCircular ( meta ) ;
18
18
cleanFieldNames ( meta ) ;
19
19
}
20
- var prepared = common . clone ( meta ) ;
20
+ var prepared = { } ;
21
21
if ( meta instanceof Error ) {
22
22
// This needed because Error's message, name and stack isn't
23
23
// accessible through cycling properties and "common.clone" doesn't
24
24
// copies them
25
25
prepared . message = meta . message ;
26
26
prepared . name = meta . name ;
27
27
prepared . stack = meta . stack ;
28
+ } else {
29
+ prepared = common . clone ( meta ) ;
28
30
}
29
31
return prepared ;
30
32
} ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " winston-mongodb" ,
3
3
"license" : " MIT" ,
4
- "version" : " 1.1.1 " ,
4
+ "version" : " 1.1.2 " ,
5
5
"description" : " A MongoDB transport for winston" ,
6
6
"author" :
" Charlie Robbins <[email protected] >" ,
7
7
"contributors" : [
You can’t perform that action at this time.
0 commit comments