syncope-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fmarte...@apache.org
Subject svn commit: r1464515 - /syncope/branches/1_1_X/core/src/main/java/org/apache/syncope/core/sync/impl/SyncJob.java
Date Thu, 04 Apr 2013 13:11:13 GMT
Author: fmartelli
Date: Thu Apr  4 13:11:13 2013
New Revision: 1464515

URL: http://svn.apache.org/r1464515
Log:
fix taskexec registration in case of SUMMARY TraceLevel

Modified:
    syncope/branches/1_1_X/core/src/main/java/org/apache/syncope/core/sync/impl/SyncJob.java

Modified: syncope/branches/1_1_X/core/src/main/java/org/apache/syncope/core/sync/impl/SyncJob.java
URL: http://svn.apache.org/viewvc/syncope/branches/1_1_X/core/src/main/java/org/apache/syncope/core/sync/impl/SyncJob.java?rev=1464515&r1=1464514&r2=1464515&view=diff
==============================================================================
--- syncope/branches/1_1_X/core/src/main/java/org/apache/syncope/core/sync/impl/SyncJob.java
(original)
+++ syncope/branches/1_1_X/core/src/main/java/org/apache/syncope/core/sync/impl/SyncJob.java
Thu Apr  4 13:11:13 2013
@@ -106,7 +106,7 @@ public class SyncJob extends AbstractTas
      * @param dryRun dry run?
      * @return report as string
      */
-    private String createReport(final List<SyncResult> syncResults, final TraceLevel
syncTraceLevel,
+    protected String createReport(final List<SyncResult> syncResults, final TraceLevel
syncTraceLevel,
             final boolean dryRun) {
 
         if (syncTraceLevel == TraceLevel.NONE) {
@@ -452,6 +452,6 @@ public class SyncJob extends AbstractTas
         // True if either failed and failures have to be registered, or if ALL has to be
registered.
         return (Status.valueOf(execution.getStatus()) == Status.FAILURE
                 && syncTask.getResource().getSyncTraceLevel().ordinal() >= TraceLevel.FAILURES.ordinal())
-                || syncTask.getResource().getSyncTraceLevel() == TraceLevel.ALL;
+                || syncTask.getResource().getSyncTraceLevel().ordinal() >= TraceLevel.SUMMARY.ordinal();
     }
 }



Mime
View raw message