more debug logging

This commit is contained in:
Stephan Dilly 2020-06-29 16:03:35 +02:00
parent 4f45be0924
commit 18c4d872d3
2 changed files with 7 additions and 2 deletions

View file

@ -136,7 +136,12 @@ impl AsyncStatus {
arc_last: Arc<Mutex<Status>>,
) -> 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()?;

View file

@ -58,7 +58,7 @@ pub struct StatusItem {
}
///
#[derive(Copy, Clone, Hash, PartialEq)]
#[derive(Copy, Clone, Hash, PartialEq, Debug)]
pub enum StatusType {
///
WorkingDir,