From 2c07bb5af3089d78373ee262cd598b52bfa0a38a Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sun, 7 Apr 2024 13:26:02 +0100 Subject: [PATCH] refactor(filesystem): Use info! rather than event! --- src/filesystem.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/filesystem.rs b/src/filesystem.rs index 095078e..50aa490 100644 --- a/src/filesystem.rs +++ b/src/filesystem.rs @@ -7,7 +7,7 @@ use std::{ }; use tempfile::{tempdir, TempDir}; -use tracing::{event, Level}; +use tracing::info; #[derive(Clone, Debug)] pub enum FileSystem { @@ -46,7 +46,7 @@ pub trait FileSystemEnv: Sync + Send + std::fmt::Debug { use std::io::{LineWriter, Write}; let path = self.in_cwd(file_name); - event!(Level::INFO, "writing to {:?}", path); + info!("writing to {:?}", path); let file = File::create(path.clone())?; let mut file = LineWriter::new(file); file.write_all(content.as_bytes())?; @@ -91,7 +91,7 @@ impl RealFileSystemEnv { impl TempFileSystemEnv { fn new() -> std::io::Result { let temp_dir = tempdir()?; - event!(Level::INFO, "temp dir: {:?}", temp_dir.path()); + info!("temp dir: {:?}", temp_dir.path()); let cwd = temp_dir.path().to_path_buf(); let temp_dir = Arc::new(Mutex::new(temp_dir)); Ok(Self { cwd, temp_dir })