Added "none" option to rust_log env string to disable all log output.

This commit is contained in:
Michael Bebenita 2010-08-09 07:07:00 -07:00
parent d2c2fbe7ca
commit 0e422c748b

View file

@ -27,6 +27,7 @@ read_type_bit_mask() {
bits |= strstr(env_str, "timer") ? rust_log::TIMER : 0;
bits |= strstr(env_str, "gc") ? rust_log::GC : 0;
bits |= strstr(env_str, "all") ? rust_log::ALL : 0;
bits = strstr(env_str, "none") ? 0 : bits;
}
return bits;
}