Skip to content

Commit

Permalink
Resolves #1131: Suppress logging when allowMajorUpdates, allowMinorUp…
Browse files Browse the repository at this point in the history
…dates and allowIncrementalUpdates are in valid combination
  • Loading branch information
gmshake authored and slawekjaranowski committed Sep 14, 2024
1 parent 1a42b29 commit 10e07ce
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@ public class SegmentUtils {
*/
public static Optional<Segment> determineUnchangedSegment(
boolean allowMajorUpdates, boolean allowMinorUpdates, boolean allowIncrementalUpdates, Log log) {
if (log != null && !allowIncrementalUpdates) {
if (log != null && !allowIncrementalUpdates && allowMinorUpdates) {
log.info("Assuming allowMinorUpdates false because allowIncrementalUpdates is false.");
}

if (log != null && !allowMinorUpdates) {
if (log != null && !allowMinorUpdates && allowMajorUpdates) {
log.info("Assuming allowMajorUpdates false because allowMinorUpdates is false.");
}

Expand Down

0 comments on commit 10e07ce

Please sign in to comment.