Force constellation logging when running particularly frustrating tests on the build machines. Continuation of investigation for #7787.

This commit is contained in:
Josh Matthews 2015-11-05 15:52:43 -05:00
parent 65a0bb4aef
commit b91e3b88bd

View file

@ -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