From fa13b2bd0dd7af04c05edfc0470340b9345aadb8 Mon Sep 17 00:00:00 2001 From: Skyler Hawthorne Date: Sun, 28 Jul 2024 21:59:21 +0100 Subject: [PATCH] reduce log noise on file writes (#11361) --- helix-view/src/document.rs | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/helix-view/src/document.rs b/helix-view/src/document.rs index 088a88dd3..6dcd2b17f 100644 --- a/helix-view/src/document.rs +++ b/helix-view/src/document.rs @@ -1084,17 +1084,13 @@ impl Document { Some(path) => match path.metadata() { Ok(metadata) => match metadata.modified() { Ok(mtime) => mtime, - Err(e) => { - log::error!( - "Using system time instead of fs' mtime: not supported on this platform: {e}" - ); + Err(err) => { + log::debug!("Could not fetch file system's mtime, falling back to current system time: {}", err); SystemTime::now() } }, - Err(e) => { - log::error!( - "Using system time instead of fs' mtime: failed to read file's metadata: {e}" - ); + Err(err) => { + log::debug!("Could not fetch file system's mtime, falling back to current system time: {}", err); SystemTime::now() } },