aboutsummaryrefslogtreecommitdiff
path: root/src/rt/rust_log.cpp
diff options
context:
space:
mode:
authorMichael Bebenita <[email protected]>2010-08-09 07:07:00 -0700
committerMichael Bebenita <[email protected]>2010-08-09 07:07:00 -0700
commit0e422c748b7789474120a6c14bda36b5f70498fa (patch)
tree5ef8aa02244797d877bb90b42b20a689c922aab8 /src/rt/rust_log.cpp
parentAdded timed_wait to condition variables. (diff)
downloadrust-0e422c748b7789474120a6c14bda36b5f70498fa.tar.xz
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.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rt/rust_log.cpp b/src/rt/rust_log.cpp
index 48fcd0f1..8e089791 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;
}