From 626438b282d4ef9d4719104cba552f915e681cac Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Tue, 9 Jun 2020 17:18:56 +0200 Subject: add startup & Discord message This might help with identifying in the logs when/if ezau was started, and when the control flow returned from the Discord client to ezau. --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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(()) -- cgit v1.2.3