Skip to content

Commit

Permalink
fix(plugin-elasticsearch): log query as JSON on import
Browse files Browse the repository at this point in the history
  • Loading branch information
critocrito committed Jan 28, 2019
1 parent c29e2b8 commit e15029a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/plugin-elasticsearch/lib/plugins/import.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const plugin = async (envelope, {cfg, log}) => {
.map(f => f.replace(/^_sc/, "$sc")),
});
const units = yield query(index, body, amount);
log.debug(`Query: ${body}`);
log.debug(`Query: ${JSON.stringify(body)}`);
results = results.concat(units);
}
log.info(`Fetched ${size(results)} units for ${size(bodies)} queries.`);
Expand Down

0 comments on commit e15029a

Please sign in to comment.