File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
server/src/com/thoughtworks/go/server/persistence Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 4141import org .hibernate .criterion .*;
4242import org .hibernate .type .LongType ;
4343import org .hibernate .type .StringType ;
44+ import org .slf4j .Logger ;
4445import org .slf4j .LoggerFactory ;
4546import org .springframework .orm .hibernate3 .HibernateCallback ;
4647import org .springframework .orm .hibernate3 .support .HibernateDaoSupport ;
5960 * @understands how to store and retrieve Materials from the database
6061 */
6162public class MaterialRepository extends HibernateDaoSupport {
62- private static final org . slf4j . Logger LOGGER = LoggerFactory .getLogger (MaterialRepository .class .getName ());
63+ private static final Logger LOGGER = LoggerFactory .getLogger (MaterialRepository .class .getName ());
6364
6465 private final GoCache goCache ;
6566 private final TransactionSynchronizationManager transactionSynchronizationManager ;
@@ -849,7 +850,7 @@ public <T> boolean isMet(T item) {
849850 }
850851 }
851852 if (!newChanges .isEmpty () && list .isEmpty ()) {
852- throw new RuntimeException ("All modifications already exist in db: " + revisions );
853+ LOGGER . debug ("All modifications already exist in db [{}]" , revisions );
853854 }
854855 if (!matchingRevisionsFromDb .isEmpty ()) {
855856 LOGGER .info ("Saving revisions for material [{}] after removing the following duplicates {}" ,
You can’t perform that action at this time.
0 commit comments