diff options
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index ff86f4b..521b7f4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -88,6 +88,7 @@ fn watch(watch: &Watch, config: &Config) -> Result<()> { let (tx, rx) = channel(); let mut watcher = notify::watcher(tx, Duration::from_secs(WATCH_DELAY_SECONDS))?; watcher.watch(&watch.dirname, RecursiveMode::Recursive)?; + info!("Watcher set up, watching {:?}", watch.dirname); loop { let event = rx.recv()?; debug!("Event: {:?}", event); @@ -158,6 +159,7 @@ fn handle_file(config: &Config, filename: &Path) -> Result<()> { if let Some(d) = &config.discord { discord::post_link(&d.auth_token, d.channel_id, log, permalink)?; + info!("Posted link to Discord"); } Ok(()) |