mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 01:16:18 +04:00
reduce log noise on file writes (#11361)
This commit is contained in:
parent
2a2bc79335
commit
fa13b2bd0d
@ -1084,17 +1084,13 @@ pub fn pickup_last_saved_time(&mut self) {
|
||||
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()
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user