From 18c4d872d3a716a061c28eff512f2a3c95edfdeb Mon Sep 17 00:00:00 2001 From: Stephan Dilly Date: Mon, 29 Jun 2020 16:03:35 +0200 Subject: [PATCH] more debug logging --- asyncgit/src/status.rs | 7 ++++++- asyncgit/src/sync/status.rs | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/asyncgit/src/status.rs b/asyncgit/src/status.rs index 6c802469..d005de1b 100644 --- a/asyncgit/src/status.rs +++ b/asyncgit/src/status.rs @@ -136,7 +136,12 @@ impl AsyncStatus { arc_last: Arc>, ) -> Result<()> { let res = Self::get_status(status_type, include_untracked)?; - log::trace!("status fetched: {}", hash(&res)); + log::trace!( + "status fetched: {} (type: {:?}, untracked: {})", + hash(&res), + status_type, + include_untracked + ); { let mut current = arc_current.lock()?; diff --git a/asyncgit/src/sync/status.rs b/asyncgit/src/sync/status.rs index 5897afe0..0aad1cfd 100644 --- a/asyncgit/src/sync/status.rs +++ b/asyncgit/src/sync/status.rs @@ -58,7 +58,7 @@ pub struct StatusItem { } /// -#[derive(Copy, Clone, Hash, PartialEq)] +#[derive(Copy, Clone, Hash, PartialEq, Debug)] pub enum StatusType { /// WorkingDir,