with logging
This commit is contained in:
parent
4924c7f125
commit
8322f07cf7
1 changed files with 9 additions and 9 deletions
|
@ -135,9 +135,9 @@ public class SEBClientEventBatchService {
|
|||
private void processEvents(final String workerName, final Collection<EventData> events) {
|
||||
|
||||
long start = 0L;
|
||||
if (log.isDebugEnabled()) {
|
||||
start = Utils.getMillisecondsNow();
|
||||
}
|
||||
//if (log.isDebugEnabled()) {
|
||||
start = Utils.getMillisecondsNow();
|
||||
//}
|
||||
|
||||
final int size = this.eventDataQueue.size();
|
||||
if (size > 1000) {
|
||||
|
@ -176,12 +176,12 @@ public class SEBClientEventBatchService {
|
|||
|
||||
this.sqlSessionTemplate.flushStatements();
|
||||
|
||||
if (log.isDebugEnabled()) {
|
||||
log.debug("SEBClientEventBatchService worker {} processes batch of size {} in {} ms",
|
||||
workerName,
|
||||
size,
|
||||
start - Utils.getMillisecondsNow());
|
||||
}
|
||||
//if (log.isDebugEnabled()) {
|
||||
log.debug("SEBClientEventBatchService worker {} processes batch of size {} in {} ms",
|
||||
workerName,
|
||||
size,
|
||||
start - Utils.getMillisecondsNow());
|
||||
//}
|
||||
|
||||
} catch (final Exception e) {
|
||||
log.error("Failed to process SEB events from eventDataQueue: ", e);
|
||||
|
|
Loading…
Reference in a new issue