oil: fix verbosity level in jit oil

This commit is contained in:
Jake Hillion 2023-08-24 05:41:39 -07:00 committed by Jake Hillion
parent 2bf1dd8b60
commit 54c8d79996
2 changed files with 4 additions and 2 deletions

View File

@ -1172,8 +1172,8 @@ void CodeGen::generate(
if (VLOG_IS_ON(3)) {
VLOG(3) << "Generated trace code:\n";
// VLOG truncates output, so use std::cout
std::cout << code;
// VLOG truncates output, so use std::cerr
std::cerr << code;
}
}

View File

@ -104,6 +104,8 @@ void OILibraryImpl::processConfigFile() {
}
std::pair<void*, const exporters::inst::Inst&> OILibraryImpl::compileCode() {
google::SetVLOGLevel("*", opts_.debugLevel);
auto symbols = std::make_shared<SymbolService>(getpid());
auto* prog = symbols->getDrgnProgram();