Skip to content

Commit bf82058

Browse files
author
Gaurang
committed
using JSON.stringify to while logging mapping
1 parent 55a7375 commit bf82058

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

elastic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ class Elastic{
114114
index: config.source.index,
115115
type: config.source.type
116116
})
117-
console.log("Mapping: ", mapping);
117+
console.log("Mapping: ", JSON.stringify(mapping));
118118

119119
if(!await target.indices.exists({index: config.target.index}))
120120
await target.indices.create({index: config.target.index});

0 commit comments

Comments
 (0)