Improves logging.

This commit is contained in:
boris 2014-03-07 20:02:07 +00:00
parent fa3e6c8357
commit 6370fbca8f
2 changed files with 4 additions and 3 deletions

View File

@ -756,7 +756,8 @@ class ConnectivityCheckClient
" will mark the pair as FAILED.");
logger.info(
"Error response for pair: " + pair.toShortString() +
", failing. Code = " + code);
", failing. Code = " + code +
"(class=" + cl + "; number=" + co + ")");
pair.setStateFailed();
}
}

View File

@ -133,7 +133,7 @@ class CandidateHarvesterSetElement
*/
public void setEnabled(boolean enabled)
{
logger.info("Disabling: " + harvester);
logger.info((enabled ? "Enabling: " : "Disabling: ") + harvester);
this.enabled = enabled;
}
@ -164,4 +164,4 @@ class CandidateHarvesterSetElement
{
harvester.getHarvestStatistics().stopHarvestTiming(harvest);
}
}
}