about summary refs log tree commit diff
path: root/src/rt/rust_scheduler.cpp
diff options
context:
space:
mode:
authorGraydon Hoare <graydon@mozilla.com>2011-12-28 11:53:12 -0800
committerGraydon Hoare <graydon@mozilla.com>2011-12-28 11:53:12 -0800
commit5930463faa07ce95268b6011db37c5be183f9f10 (patch)
tree182c5933399311f7e082ce4d34213d9a8d68f40d /src/rt/rust_scheduler.cpp
parent7fd62bb2b57e71899748bdb9fed24b5fc5474a67 (diff)
downloadrust-5930463faa07ce95268b6011db37c5be183f9f10.tar.gz
rust-5930463faa07ce95268b6011db37c5be183f9f10.zip
Tidy up some drift in runtime logging, close #1380.
Diffstat (limited to 'src/rt/rust_scheduler.cpp')
-rw-r--r--src/rt/rust_scheduler.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/rt/rust_scheduler.cpp b/src/rt/rust_scheduler.cpp
index 03567bbe19a..bf40fea36ee 100644
--- a/src/rt/rust_scheduler.cpp
+++ b/src/rt/rust_scheduler.cpp
@@ -19,7 +19,7 @@ rust_scheduler::rust_scheduler(rust_kernel *kernel,
     ref_count(1),
     interrupt_flag(0),
     _log(srv, this),
-    log_lvl(log_note),
+    log_lvl(log_debug),
     srv(srv),
     // TODO: calculate a per scheduler name.
     name("main"),
@@ -203,12 +203,12 @@ rust_scheduler::schedule_task(int id) {
 
 void
 rust_scheduler::log_state() {
-    if (log_rt_task < log_note) return;
+    if (log_rt_task < log_debug) return;
 
     if (!running_tasks.is_empty()) {
-        log(NULL, log_note, "running tasks:");
+        log(NULL, log_debug, "running tasks:");
         for (size_t i = 0; i < running_tasks.length(); i++) {
-            log(NULL, log_note, "\t task: %s @0x%" PRIxPTR
+            log(NULL, log_debug, "\t task: %s @0x%" PRIxPTR
                 " remaining: %" PRId64 " us",
                 running_tasks[i]->name,
                 running_tasks[i],
@@ -217,9 +217,9 @@ rust_scheduler::log_state() {
     }
 
     if (!blocked_tasks.is_empty()) {
-        log(NULL, log_note, "blocked tasks:");
+        log(NULL, log_debug, "blocked tasks:");
         for (size_t i = 0; i < blocked_tasks.length(); i++) {
-            log(NULL, log_note, "\t task: %s @0x%" PRIxPTR ", blocked on: 0x%"
+            log(NULL, log_debug, "\t task: %s @0x%" PRIxPTR ", blocked on: 0x%"
                 PRIxPTR " '%s'",
                 blocked_tasks[i]->name, blocked_tasks[i],
                 blocked_tasks[i]->cond, blocked_tasks[i]->cond_name);
@@ -227,9 +227,9 @@ rust_scheduler::log_state() {
     }
 
     if (!dead_tasks.is_empty()) {
-        log(NULL, log_note, "dead tasks:");
+        log(NULL, log_debug, "dead tasks:");
         for (size_t i = 0; i < dead_tasks.length(); i++) {
-            log(NULL, log_note, "\t task: %s 0x%" PRIxPTR,
+            log(NULL, log_debug, "\t task: %s 0x%" PRIxPTR,
                 dead_tasks[i]->name, dead_tasks[i]);
         }
     }