diff options
author | Daniel Schadt <kingdread@gmx.de> | 2020-06-09 17:18:56 +0200 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2020-06-09 17:18:56 +0200 |
commit | 626438b282d4ef9d4719104cba552f915e681cac (patch) | |
tree | 7b73aaf93a60f47ebb773453577e845ae228d33b /src/main.rs | |
parent | 01e6e75645d5c5a611efde957eff0621ad5b1bca (diff) | |
download | ezau-626438b282d4ef9d4719104cba552f915e681cac.tar.gz ezau-626438b282d4ef9d4719104cba552f915e681cac.tar.bz2 ezau-626438b282d4ef9d4719104cba552f915e681cac.zip |
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.
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(()) |