From 880be6a94013ba0b7791b0ca1b6e16104f2f0a1c Mon Sep 17 00:00:00 2001 From: Marijn Haverbeke Date: Tue, 19 Apr 2011 12:21:57 +0200 Subject: Overhaul logging system in runtime See https://github.com/graydon/rust/wiki/Logging-vision The runtime logging categories are now treated in the same way as modules in compiled code. Each domain now has a log_lvl that can be used to restrict the logging from that domain (will be used to allow logging to be restricted to a single domain). Features dropped (can be brought back to life if there is interest): - Logger indentation - Multiple categories per log statement - I possibly broke some of the color code -- it confuses me --- src/rt/rust_task_list.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/rt/rust_task_list.cpp') diff --git a/src/rt/rust_task_list.cpp b/src/rt/rust_task_list.cpp index dd6aaeb5..bb1224af 100644 --- a/src/rt/rust_task_list.cpp +++ b/src/rt/rust_task_list.cpp @@ -7,10 +7,10 @@ rust_task_list::rust_task_list (rust_dom *dom, const char* name) : void rust_task_list::delete_all() { - DLOG(dom, rust_log::TASK, "deleting all %s tasks", name); + DLOG(dom, task, "deleting all %s tasks", name); while (is_empty() == false) { rust_task *task = pop_value(); - DLOG(dom, rust_log::TASK, "deleting task " PTR, task); + DLOG(dom, task, "deleting task " PTR, task); delete task; } } -- cgit v1.2.3