SEARCH-499: Adding tracker/corename to error messages

This commit is contained in:
Gethin James
2017-07-20 14:50:13 +02:00
parent a5d6cf1130
commit 70620e2479
2 changed files with 6 additions and 6 deletions
@@ -168,7 +168,7 @@ public abstract class AbstractTracker implements Tracker
catch(IndexTrackingShutdownException t)
{
setRollback(true);
log.info("Stopping index tracking for "+coreName);
log.info("Stopping index tracking for " + getClass().getSimpleName() + " - " + coreName);
}
catch(Throwable t)
{
@@ -178,23 +178,23 @@ public abstract class AbstractTracker implements Tracker
if (log.isDebugEnabled())
{
// DEBUG, so give the whole stack trace
log.warn("Tracking communication timed out.", t);
log.warn("Tracking communication timed out for " + getClass().getSimpleName() + " - " + coreName, t);
}
else
{
// We don't need the stack trace. It timed out.
log.warn("Tracking communication timed out.");
log.warn("Tracking communication timed out for " + getClass().getSimpleName() + " - " + coreName);
}
}
else
{
log.error("Tracking failed", t);
log.error("Tracking failed for " + getClass().getSimpleName() + " - " + coreName, t);
}
}
}
catch (InterruptedException e)
{
log.error("Semaphore interrupted", e);
log.error("Semaphore interrupted for " + getClass().getSimpleName() + " - " + coreName, e);
}
finally
{
@@ -268,7 +268,7 @@ public class ModelTracker extends AbstractTracker implements Tracker
}
catch (Throwable t)
{
log.error("Model tracking failed", t);
log.error("Model tracking failed for core: "+ coreName, t);
}
}