Skip to content

Commit 8a46dbe

Browse files
committed
don't emit --anneal warning in quiet mode
1 parent f776e69 commit 8a46dbe

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/pyrocore/scripts/rtcontrol.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -600,10 +600,11 @@ def mainloop(self):
600600
matches.sort(key=sort_key, reverse=self.options.reverse_sort)
601601

602602
if self.options.anneal:
603-
if self.options.from_view not in (None, 'default'):
604-
self.LOG.warn("Mixing --anneal with a view other than 'default' might yield unexpected results!")
605-
if int(config.fast_query):
606-
self.LOG.warn("Using --anneal together with the query optimizer might yield unexpected results!")
603+
if not self.options.quiet:
604+
if self.options.from_view not in (None, 'default'):
605+
self.LOG.warn("Mixing --anneal with a view other than 'default' might yield unexpected results!")
606+
if int(config.fast_query):
607+
self.LOG.warn("Using --anneal together with the query optimizer might yield unexpected results!")
607608
for mode in self.options.anneal:
608609
if self.anneal(mode, matches, orig_matches):
609610
matches.sort(key=sort_key, reverse=self.options.reverse_sort)

0 commit comments

Comments
 (0)