Skip to content

Commit c066205

Browse files
committed
chore: use info instead of warn for some cache and valgrind setup logs
1 parent fd06e42 commit c066205

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/run/runner/helpers/apt.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ pub fn install(system_info: &SystemInfo, packages: &[&str]) -> Result<()> {
108108
/// Restore cached tools from the cache directory to the root filesystem
109109
fn restore_from_cache(system_info: &SystemInfo, cache_dir: &Path) -> Result<()> {
110110
if !is_system_compatible(system_info) {
111-
warn!("Cache restore is not supported on this system, skipping");
111+
info!("Cache restore is not supported on this system, skipping");
112112
return Ok(());
113113
}
114114

@@ -166,7 +166,7 @@ fn restore_from_cache(system_info: &SystemInfo, cache_dir: &Path) -> Result<()>
166166
/// Save installed packages to the cache directory
167167
fn save_to_cache(system_info: &SystemInfo, cache_dir: &Path, packages: &[&str]) -> Result<()> {
168168
if !is_system_compatible(system_info) {
169-
warn!("Caching of installed package is not supported on this system, skipping");
169+
info!("Caching of installed package is not supported on this system, skipping");
170170
return Ok(());
171171
}
172172

src/run/runner/valgrind/setup.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ fn is_valgrind_installed() -> bool {
7777

7878
// Check if it's a codspeed version
7979
if !version.contains(".codspeed") {
80-
warn!(
80+
info!(
8181
"Valgrind is installed but is not a CodSpeed version. expecting {} but found installed: {}",
8282
VALGRIND_CODSPEED_VERSION_STRING.as_str(),
8383
version.trim()
@@ -87,23 +87,23 @@ fn is_valgrind_installed() -> bool {
8787

8888
// Parse the installed version
8989
let Some(installed_version) = parse_valgrind_codspeed_version(&version) else {
90-
warn!(
90+
info!(
9191
"Could not parse valgrind version. expecting {} but found installed: {}",
9292
VALGRIND_CODSPEED_VERSION_STRING.as_str(),
9393
version.trim()
9494
);
9595
return false;
9696
};
9797
if installed_version < VALGRIND_CODSPEED_VERSION {
98-
warn!(
98+
info!(
9999
"Valgrind is installed but the version is too old. expecting {} or higher but found installed: {}",
100100
VALGRIND_CODSPEED_VERSION_STRING.as_str(),
101101
version.trim()
102102
);
103103
return false;
104104
}
105105
if installed_version > VALGRIND_CODSPEED_VERSION {
106-
warn!(
106+
info!(
107107
"Using experimental valgrind version {}.codspeed. The recommended version is {}",
108108
installed_version,
109109
VALGRIND_CODSPEED_VERSION_STRING.as_str()

0 commit comments

Comments
 (0)