From 54c8d7999687a2e122ff66ee676faa760fedec27 Mon Sep 17 00:00:00 2001 From: Jake Hillion Date: Thu, 24 Aug 2023 05:41:39 -0700 Subject: [PATCH] oil: fix verbosity level in jit oil --- oi/CodeGen.cpp | 4 ++-- oi/OILibraryImpl.cpp | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/oi/CodeGen.cpp b/oi/CodeGen.cpp index cddc1e9..89f5523 100644 --- a/oi/CodeGen.cpp +++ b/oi/CodeGen.cpp @@ -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; } } diff --git a/oi/OILibraryImpl.cpp b/oi/OILibraryImpl.cpp index 47f5a9c..15d47f9 100644 --- a/oi/OILibraryImpl.cpp +++ b/oi/OILibraryImpl.cpp @@ -104,6 +104,8 @@ void OILibraryImpl::processConfigFile() { } std::pair OILibraryImpl::compileCode() { + google::SetVLOGLevel("*", opts_.debugLevel); + auto symbols = std::make_shared(getpid()); auto* prog = symbols->getDrgnProgram();