diff options
| author | Michael Bebenita <mbebenita@mozilla.com> | 2010-08-09 07:07:00 -0700 |
|---|---|---|
| committer | Michael Bebenita <mbebenita@mozilla.com> | 2010-08-09 07:07:00 -0700 |
| commit | 0e422c748b7789474120a6c14bda36b5f70498fa (patch) | |
| tree | 5ef8aa02244797d877bb90b42b20a689c922aab8 /src/rt/rust_log.cpp | |
| parent | d2c2fbe7ca25affb69715a39922a91875eaad9c7 (diff) | |
| download | rust-0e422c748b7789474120a6c14bda36b5f70498fa.tar.gz rust-0e422c748b7789474120a6c14bda36b5f70498fa.zip | |
Added "none" option to rust_log env string to disable all log output.
Diffstat (limited to 'src/rt/rust_log.cpp')
| -rw-r--r-- | src/rt/rust_log.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rt/rust_log.cpp b/src/rt/rust_log.cpp index 48fcd0f1221..8e0897919f1 100644 --- a/src/rt/rust_log.cpp +++ b/src/rt/rust_log.cpp @@ -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; } |
