Skip to content

Commit

Permalink
Merge pull request #2 from hnez/topic/log-config-reloads
Browse files Browse the repository at this point in the history
config: log config file re-reads
  • Loading branch information
hnez authored Aug 21, 2024
2 parents 8ffdab3 + caaa125 commit 7eaeeb5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use std::path::{Path, PathBuf};
use std::sync::{Arc, Mutex};
use std::time::SystemTime;

use log::error;
use log::{error, info};
use serde::Deserialize;

mod duration_human;
Expand Down Expand Up @@ -100,6 +100,7 @@ impl Inner {
Ok(cf) => {
self.config_file = cf;
self.last_modified = last_modified;
info!("Re-read config file {}", self.path.display());
}
Err(e) => {
error!("Failed to re-read config: {e}. Re-using previous version.");
Expand Down

0 comments on commit 7eaeeb5

Please sign in to comment.