Skip to content

Commit

Permalink
Add more logging to engine
Browse files Browse the repository at this point in the history
  • Loading branch information
patriksvensson committed Mar 21, 2020
1 parent ddb350e commit e341d08
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ pub struct EngineHandle {

impl EngineHandle {
pub fn stop(self) -> DuckResult<()> {
info!("Shutting down engine...");
self.signaler.signal()?;
self.watcher.join().unwrap()?;
trace!("The configuration watcher stopped.");
Expand Down Expand Up @@ -153,6 +154,7 @@ fn watch_configuration(
loop {
// Check if the configuration have changed
if let Some(config) = watcher::try_load(&mut context, &loader) {
info!("Configuration reloaded");
state.refresh(&config);
trace!("Sending configuration updated message");
bus.send(EngineThreadMessage::ConfigurationUpdated(config))?;
Expand Down

0 comments on commit e341d08

Please sign in to comment.