Skip to content

Commit

Permalink
Resolves mojohaus#1131: Suppress logging when allowMajorUpdates, allo…
Browse files Browse the repository at this point in the history
…wMinorUpdates and allowIncrementalUpdates are in valid combination
  • Loading branch information
gmshake committed Aug 20, 2024
1 parent 8538828 commit f8d429d
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 f8d429d

Please sign in to comment.