Skip to content

Commit

Permalink
hibernate#49 change log level
Browse files Browse the repository at this point in the history
  • Loading branch information
mincong-h committed Jun 23, 2016
1 parent 1ff59ad commit 2f40c3c
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
Expand Up @@ -32,7 +32,7 @@ public class AfterPurgeDecider implements Decider {
*/
@Override
public String decide(StepExecution[] executions) throws Exception {
logger.debugf("optimzeAfterPurge = %b%n", optimizeAfterPurge);
logger.infof("optimzeAfterPurge = %b", optimizeAfterPurge);
return String.valueOf(optimizeAfterPurge);
}
}
Expand Up @@ -44,7 +44,7 @@ public class BatchItemReader implements ItemReader {
*/
@Override
public Serializable checkpointInfo() throws Exception {
logger.debug("#checkpointInfo()");
logger.info("checkpointInfo");
return null;
}

Expand All @@ -55,7 +55,7 @@ public Serializable checkpointInfo() throws Exception {
*/
@Override
public void close() throws Exception {
logger.debug("#close()");
logger.info("close");
}

/**
Expand All @@ -69,7 +69,7 @@ public void close() throws Exception {
*/
@Override
public void open(Serializable checkpoint) throws Exception {
logger.debugf("#open(...): entityType = %s%n", entityType);
logger.debugf("#open(...): entityType = %s", entityType);
}

/**
Expand Down
Expand Up @@ -49,13 +49,13 @@ public void analyzeCollectorData(Serializable fromCollector) throws Exception {
if (entitiesLoaded != 0) {
percentage = workCount * 100f / entitiesLoaded;
}
logger.infof("#analyzeCollectorData(): %d works processed (%.1f%%).%n",
logger.infof("%d works processed (%.1f%%).",
workCount, percentage);
}

@Override
public void analyzeStatus(BatchStatus batchStatus, String exitStatus)
throws Exception {
logger.debug("#analyzeStatus(...) called.");
logger.info("analyzeStatus called.");
}
}
Expand Up @@ -12,23 +12,23 @@ public class LucenePartitionReducer implements PartitionReducer {

@Override
public void beginPartitionedStep() throws Exception {
logger.debug("#beginPartitionedStep() called.");
logger.info("#beginPartitionedStep() called.");
}

@Override
public void beforePartitionedStepCompletion() throws Exception {
logger.debug("#beforePartitionedStepCompletion() called.");
logger.info("#beforePartitionedStepCompletion() called.");
}

@Override
public void rollbackPartitionedStep() throws Exception {
logger.debug("#rollbackPartitionedStep() called.");
logger.info("#rollbackPartitionedStep() called.");
}

@Override
public void afterPartitionedStepCompletion(PartitionStatus status)
throws Exception {
logger.debug("#afterPartitionedStepCompletion(...) called.");
logger.info("#afterPartitionedStepCompletion(...) called.");
}

}
Expand Up @@ -32,7 +32,7 @@ public class PurgeDecider implements Decider {
*/
@Override
public String decide(StepExecution[] executions) throws Exception {
logger.infof("#decide: purgeAtStart=%s.%n", purgeAtStart);
logger.infof("purgeAtStart=%s.%n", purgeAtStart);
return String.valueOf(purgeAtStart);
}
}

0 comments on commit 2f40c3c

Please sign in to comment.