about summary refs log tree commit diff
path: root/src/rt
diff options
context:
space:
mode:
authorGraydon Hoare <graydon@mozilla.com>2011-03-24 12:20:48 -0700
committerGraydon Hoare <graydon@mozilla.com>2011-03-24 12:20:48 -0700
commit99682db53c64fe6640623d79667b3ebbfc5fec68 (patch)
treee1c9a6d2eac6ace93f9847827573228ce1facf17 /src/rt
parent86f1ace55b6507671f51e52557db5caef7ad4393 (diff)
downloadrust-99682db53c64fe6640623d79667b3ebbfc5fec68.tar.gz
rust-99682db53c64fe6640623d79667b3ebbfc5fec68.zip
Make symbol resolution failures log under rust_log::ERR flag as well.
Diffstat (limited to 'src/rt')
-rw-r--r--src/rt/rust_crate_cache.cpp3
-rw-r--r--src/rt/rust_upcall.cpp4
2 files changed, 4 insertions, 3 deletions
diff --git a/src/rt/rust_crate_cache.cpp b/src/rt/rust_crate_cache.cpp
index 62fd7c01a9c..9fc1ae1856d 100644
--- a/src/rt/rust_crate_cache.cpp
+++ b/src/rt/rust_crate_cache.cpp
@@ -120,7 +120,8 @@ rust_crate_cache::rust_sym::rust_sym(rust_dom *dom,
     if (found_leaf) {
         dom->log(rust_log::CACHE, "resolved symbol to 0x%"  PRIxPTR, val);
     } else {
-        dom->log(rust_log::CACHE, "failed to resolve symbol");
+        dom->log(rust_log::CACHE | rust_log::ERR,
+                 "failed to resolve symbol");
     }
 }
 
diff --git a/src/rt/rust_upcall.cpp b/src/rt/rust_upcall.cpp
index 19f1ec9070d..f5fa00f98bb 100644
--- a/src/rt/rust_upcall.cpp
+++ b/src/rt/rust_upcall.cpp
@@ -535,8 +535,8 @@ upcall_require_c_sym(rust_task *task,
         task->log(rust_log::UPCALL | rust_log::CACHE,
                   "found-or-cached addr: 0x%" PRIxPTR, addr);
     } else {
-        task->log(rust_log::UPCALL | rust_log::CACHE,
-                  "failed to resolve symbol");
+        task->log(rust_log::UPCALL | rust_log::CACHE | rust_log::ERR,
+                  "failed to resolve symbol %s in %s", symbol, library);
         task->fail(6);
     }
     return addr;