mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-23 09:33:01 +03:00
more logs to file watcher
This commit is contained in:
parent
16be4b26f7
commit
705e0b4ffb
@ -70,7 +70,20 @@ impl Dispatcher {
|
|||||||
file_path.display()
|
file_path.display()
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
.map(|relative_file_path| rtx.send(relative_file_path.to_path_buf()))
|
.map(|relative_file_path| {
|
||||||
|
log::info!(
|
||||||
|
"{}: file changed: {}",
|
||||||
|
self.project_id,
|
||||||
|
relative_file_path.display()
|
||||||
|
);
|
||||||
|
if let Err(e) = rtx.send(relative_file_path.to_path_buf()) {
|
||||||
|
log::error!(
|
||||||
|
"{}: failed to send file change event: {:#}",
|
||||||
|
self.project_id,
|
||||||
|
e
|
||||||
|
);
|
||||||
|
}
|
||||||
|
})
|
||||||
{
|
{
|
||||||
log::error!(
|
log::error!(
|
||||||
"{}: failed to send file change event: {:#}",
|
"{}: failed to send file change event: {:#}",
|
||||||
|
@ -34,8 +34,9 @@ impl Dispatcher {
|
|||||||
if self.cancellation_token.is_cancelled() {
|
if self.cancellation_token.is_cancelled() {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
println!("{}: tick", self.project_id);
|
if let Err(e) = rtx.send(time::SystemTime::now()) {
|
||||||
rtx.send(time::SystemTime::now())?;
|
log::error!("{}: failed to send tick: {}", self.project_id, e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
log::info!("{}: ticker stopped", self.project_id);
|
log::info!("{}: ticker stopped", self.project_id);
|
||||||
|
Loading…
Reference in New Issue
Block a user