Add a few more debug prints

This commit is contained in:
Jakob Borg
2014-10-16 09:32:23 +02:00
parent d031f958a9
commit 2fb8eb755b
3 changed files with 22 additions and 2 deletions

View File

@@ -152,7 +152,7 @@ func (w *Walker) walkAndHashFiles(fchan chan protocol.FileInfo) filepath.WalkFun
Modified: info.ModTime().Unix(),
}
if debug {
l.Debugln("dir:", f)
l.Debugln("dir:", p, f)
}
fchan <- f
return nil
@@ -176,12 +176,16 @@ func (w *Walker) walkAndHashFiles(fchan chan protocol.FileInfo) filepath.WalkFun
flags = protocol.FlagNoPermBits | 0666
}
fchan <- protocol.FileInfo{
f := protocol.FileInfo{
Name: rn,
Version: lamport.Default.Tick(0),
Flags: flags,
Modified: info.ModTime().Unix(),
}
if debug {
l.Debugln("to hash:", p, f)
}
fchan <- f
}
return nil