From 46bb3e5778087ec3fbeb7159cd7b9f71c159e0f4 Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Wed, 30 Dec 2015 17:21:15 +0000 Subject: [PATCH] Make a debugging println!() conditional on is_running_problem_test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit … like other print messages introduced in 19a1e57c9019d363a5391c5a93722b4206c95440 --- components/compositing/compositor.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/compositing/compositor.rs b/components/compositing/compositor.rs index bcf65be9aa1..f4c67e49269 100644 --- a/components/compositing/compositor.rs +++ b/components/compositing/compositor.rs @@ -1652,7 +1652,9 @@ impl IOCompositor { // for saving. // Reset the flag so that we check again in the future // TODO: only reset this if we load a new document? - println!("was ready to save, resetting ready_to_save_state"); + if opts::get().is_running_problem_test { + println!("was ready to save, resetting ready_to_save_state"); + } self.ready_to_save_state = ReadyState::Unknown; Ok(()) }