mirror of
https://github.com/Alfresco/SearchServices.git
synced 2026-09-16 18:12:56 +00:00
SEARCH-499: Adding tracker/corename to error messages
This commit is contained in:
+5
-5
@@ -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
|
||||
{
|
||||
|
||||
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user