Fixes #143. Log correct targets. (#155)

This commit is contained in:
Artem Yavorsky 2017-01-27 02:53:52 +02:00 committed by Henry Zhu
parent 963249fc4b
commit bc02c95ef0

View File

@ -132,7 +132,9 @@ const logPlugin = (plugin, targets, list) => {
const envList = list[plugin] || {};
const filteredList = Object.keys(targets)
.reduce((a, b) => {
a[b] = envList[b];
if (!envList[b] || targets[b] < envList[b]) {
a[b] = targets[b];
}
return a;
}, {});
const logStr = ` ${plugin} ${JSON.stringify(filteredList)}`;