about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorGraydon Hoare <graydon@mozilla.com>2012-11-15 12:03:45 -0800
committerGraydon Hoare <graydon@mozilla.com>2012-11-15 12:03:54 -0800
commit59a034a63fee084d503625d79ff986d0c12d1eaf (patch)
treea20a8478db8e3e72c5ef06a32550aba78d481cd6 /src/libcore
parentadc4bed773ea6af7343a5a6bbe46e288367fecee (diff)
rt: bump log levels up by one, fix tautological-compare error (and permit turning off logging entirely).
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/core.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/libcore/core.rs b/src/libcore/core.rs
index 1be217dac9f..4bc04566740 100644
--- a/src/libcore/core.rs
+++ b/src/libcore/core.rs
@@ -54,23 +54,23 @@ pub use coreops::ops::{Shl, Shr, Index};
 // warn-and-below.
 
 /// The error log level
-pub const error : u32 = 0_u32;
+pub const error : u32 = 1_u32;
 /// The warning log level
-pub const warn : u32 = 1_u32;
+pub const warn : u32 = 2_u32;
 /// The info log level
-pub const info : u32 = 2_u32;
+pub const info : u32 = 3_u32;
 /// The debug log level
-pub const debug : u32 = 3_u32;
+pub const debug : u32 = 4_u32;
 
 // A curious inner-module that's not exported that contains the binding
 // 'core' so that macro-expanded references to core::error and such
 // can be resolved within libcore.
 #[doc(hidden)] // FIXME #3538
 mod core {
-    pub const error : u32 = 0_u32;
-    pub const warn : u32 = 1_u32;
-    pub const info : u32 = 2_u32;
-    pub const debug : u32 = 3_u32;
+    pub const error : u32 = 1_u32;
+    pub const warn : u32 = 2_u32;
+    pub const info : u32 = 3_u32;
+    pub const debug : u32 = 4_u32;
 }
 
 // Similar to above. Some magic to make core testable.