Skip to content

Commit 8defb91

Browse files
committed
fix: update vrs artifact runid; DV_LOG
1 parent 2d76f05 commit 8defb91

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

.github/gen_core.json.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ export VERIFY_RUST_STD_LIBRARY=$WORKSPACE/verify-rust-std/library
1212
# test/verify-rust-std needs this, so remember to
1313
# * update runid after verify-rust-std submodule syncs
1414
# * update snapshots after runid changes
15-
# rm tmp -rf
16-
# gh run download -D tmp -R model-checking/verify-rust-std 16777123952
15+
rm tmp -rf
16+
gh run download -D tmp -R model-checking/verify-rust-std 17086909032
1717

1818
ls -alh $VERIFY_RUST_STD_LIBRARY
1919

src/logger.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
use log::LevelFilter;
12
use std::{env, fs};
23
use tracing_subscriber::{EnvFilter, fmt, prelude::*, registry};
34

@@ -22,7 +23,10 @@ pub fn init() {
2223
// write logs is keeping records across the whole compilation.
2324
let reg = if let Some(log_file) = env::var(ENV_LOG)
2425
.map(|log| {
25-
log.parse::<log::Level>().ok()?;
26+
let level = log.parse::<LevelFilter>().ok()?;
27+
if level == LevelFilter::Off {
28+
return None;
29+
}
2630
log_file()
2731
})
2832
.ok()

tests/utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ pub use pretty_assertions::assert_eq;
99

1010
pub fn cmd(args: &[&str]) -> String {
1111
let mut command = Command::cargo_bin(env!("CARGO_PKG_NAME")).unwrap();
12-
command.env("RUST_LOG", "off").args(args);
12+
command.env("DV_LOG", "off").args(args);
1313
let output = command.output().unwrap();
1414
assert!(
1515
output.status.success(),

0 commit comments

Comments
 (0)