Skip to content

Commit c40cf96

Browse files
committed
Temporarily turn off logging initialization
Will be restored as soon as I find a way for the runtime to figure out whether it is on rustboot or rustc.
1 parent f6be25a commit c40cf96

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/rt/rust.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,10 @@ extern "C" CDECL int
8080
rust_start(uintptr_t main_fn, rust_crate const *crate, int argc,
8181
char **argv, void* crate_map) {
8282

83-
// Only when we're on rustc is the last argument passed
84-
if (!crate->get_image_base())
85-
update_log_settings(crate_map, getenv("RUST_LOG"));
83+
// FIXME commented out until I figure out how to detect rustboot in a sane
84+
// way
85+
/* if (NOT_USING_RUSTBOOT)
86+
update_log_settings(crate_map, getenv("RUST_LOG"));*/
8687
rust_srv *srv = new rust_srv();
8788
rust_kernel *kernel = new rust_kernel(srv);
8889
kernel->start();

0 commit comments

Comments
 (0)