From 9fa2b53d8c41cd717ed470926a746bdbff98dc35 Mon Sep 17 00:00:00 2001 From: Michael Bebenita Date: Tue, 17 Aug 2010 23:30:10 -0700 Subject: Add a "special" rust_log flag to be used for debugging in cases where the full log output prevents races from occurring. --- src/rt/rust_log.cpp | 1 + src/rt/rust_log.h | 1 + 2 files changed, 2 insertions(+) (limited to 'src') 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 }; -- cgit v1.2.3