some logging conditional

This commit is contained in:
Milos Kozak 2018-07-22 21:19:59 +02:00
parent cede7dd4b9
commit 49e8a0b7c4

View file

@ -120,10 +120,12 @@ public class SensitivityOref1Plugin extends AbstractSensitivityPlugin {
// when we have less than 8h worth of deviation data, add up to 90m of zero deviations // when we have less than 8h worth of deviation data, add up to 90m of zero deviations
// this dampens any large sensitivity changes detected based on too little data, without ignoring them completely // this dampens any large sensitivity changes detected based on too little data, without ignoring them completely
log.debug("Using most recent " + deviationsArray.size() + " deviations"); if (Config.logAutosensData)
log.debug("Using most recent " + deviationsArray.size() + " deviations");
if (deviationsArray.size() < 96) { if (deviationsArray.size() < 96) {
int pad = Math.round((1 - deviationsArray.size() / 96) * 18); int pad = Math.round((1 - deviationsArray.size() / 96) * 18);
log.debug("Adding " + pad + " more zero deviations"); if (Config.logAutosensData)
log.debug("Adding " + pad + " more zero deviations");
for (int d = 0; d < pad; d++) { for (int d = 0; d < pad; d++) {
//process.stderr.write("."); //process.stderr.write(".");
deviationsArray.add(0d); deviationsArray.add(0d);