From b91e3b88bd1ecf6707d86c18bf523acf05215435 Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Thu, 5 Nov 2015 15:52:43 -0500 Subject: [PATCH] Force constellation logging when running particularly frustrating tests on the build machines. Continuation of investigation for #7787. --- components/servo/main.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/components/servo/main.rs b/components/servo/main.rs index e78bd2b3170..45a64d74784 100644 --- a/components/servo/main.rs +++ b/components/servo/main.rs @@ -51,11 +51,15 @@ fn load_gl_when_headless() { fn load_gl_when_headless() {} fn main() { - env_logger::init().unwrap(); - // Parse the command line options and store them globally opts::from_cmdline_args(&*args()); + if opts::get().is_running_problem_test && ::std::env::var("RUST_LOG").is_err() { + ::std::env::set_var("RUST_LOG", "compositing::constellation"); + } + + env_logger::init().unwrap(); + setup_logging(); // Possibly interpret the `HOST_FILE` environment variable