diff options
| author | Michael Bebenita <[email protected]> | 2010-08-17 23:30:10 -0700 |
|---|---|---|
| committer | Michael Bebenita <[email protected]> | 2010-08-17 23:49:57 -0700 |
| commit | 9fa2b53d8c41cd717ed470926a746bdbff98dc35 (patch) | |
| tree | 448b2c0dbe92f39c5417885712b123af304f152b | |
| parent | Added labels to blocking conditions. (diff) | |
| download | rust-9fa2b53d8c41cd717ed470926a746bdbff98dc35.tar.xz rust-9fa2b53d8c41cd717ed470926a746bdbff98dc35.zip | |
Add a "special" rust_log flag to be used for debugging in cases where the full log output prevents races from occurring.
| -rw-r--r-- | src/rt/rust_log.cpp | 1 | ||||
| -rw-r--r-- | src/rt/rust_log.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/rt/rust_log.cpp b/src/rt/rust_log.cpp index c2a1bbe3..e72a62fa 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, "stdlib") ? rust_log::STDLIB : 0; + bits |= strstr(env_str, "special") ? rust_log::SPECIAL : 0; bits |= strstr(env_str, "all") ? rust_log::ALL : 0; bits = strstr(env_str, "none") ? 0 : bits; } diff --git a/src/rt/rust_log.h b/src/rt/rust_log.h index 58b36f8d..5155cb48 100644 --- a/src/rt/rust_log.h +++ b/src/rt/rust_log.h @@ -42,6 +42,7 @@ public: TIMER = 0x400, GC = 0x800, STDLIB = 0x1000, + SPECIAL = 0x2000, ALL = 0xffffffff }; |