Auto merge of #9094 - servo:silent-debug-message, r=SimonSapin

Make a debugging println!() conditional on is_running_problem_test

… like other print messages introduced in 19a1e57c90

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9094)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2015-12-31 22:40:59 +05:30
commit d9bf672cb0

View file

@ -1652,7 +1652,9 @@ impl<Window: WindowMethods> IOCompositor<Window> {
// 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(())
}