refactor: hopefully a better log

This commit is contained in:
mow 2026-03-13 17:22:44 +01:00
parent 4c1af08fb7
commit ca6f8f788f

View file

@ -9,7 +9,6 @@ use crate::document::session::data::{CollectionKind, SessionData, SessionItem};
use crate::document::session::store;
use crate::document::DocumentContent;
use crate::error::Error;
use log::warn;
use std::path::{Path, PathBuf};
/// The load state of the currently viewed document.
@ -153,7 +152,7 @@ impl DocumentManager {
if item.path.exists() {
true
} else {
warn!(
log::error!(
"Session '{}': {}",
session.name,
Error::NotFound(item.path.display().to_string())