Skip to content

Commit 99682db

Browse files
committed
Make symbol resolution failures log under rust_log::ERR flag as well.
1 parent 86f1ace commit 99682db

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/rt/rust_crate_cache.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,8 @@ rust_crate_cache::rust_sym::rust_sym(rust_dom *dom,
120120
if (found_leaf) {
121121
dom->log(rust_log::CACHE, "resolved symbol to 0x%" PRIxPTR, val);
122122
} else {
123-
dom->log(rust_log::CACHE, "failed to resolve symbol");
123+
dom->log(rust_log::CACHE | rust_log::ERR,
124+
"failed to resolve symbol");
124125
}
125126
}
126127

src/rt/rust_upcall.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -535,8 +535,8 @@ upcall_require_c_sym(rust_task *task,
535535
task->log(rust_log::UPCALL | rust_log::CACHE,
536536
"found-or-cached addr: 0x%" PRIxPTR, addr);
537537
} else {
538-
task->log(rust_log::UPCALL | rust_log::CACHE,
539-
"failed to resolve symbol");
538+
task->log(rust_log::UPCALL | rust_log::CACHE | rust_log::ERR,
539+
"failed to resolve symbol %s in %s", symbol, library);
540540
task->fail(6);
541541
}
542542
return addr;

0 commit comments

Comments
 (0)