From ca6f8f788f2e9150185c7960a64a7f30de2db32e Mon Sep 17 00:00:00 2001 From: mow Date: Fri, 13 Mar 2026 17:22:44 +0100 Subject: [PATCH] refactor: hopefully a better log --- src/document/manager.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/document/manager.rs b/src/document/manager.rs index 4699438..19de638 100644 --- a/src/document/manager.rs +++ b/src/document/manager.rs @@ -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())