chore: add debug line to RedoHasher (#2591)
This commit is contained in:
parent
2f946a4791
commit
a6bd60efd6
|
|
@ -145,6 +145,12 @@ func RedoHasher() func(string) (string, error) {
|
|||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
||||
logrus.Debugf("Hash components for file: %s, mode: %s, mtime: %s, size: %s, user-id: %s, group-id: %s",
|
||||
p, []byte(fi.Mode().String()), []byte(fi.ModTime().String()),
|
||||
[]byte(strconv.FormatInt(fi.Size(), 16)), []byte(strconv.FormatUint(uint64(fi.Sys().(*syscall.Stat_t).Uid), 36)),
|
||||
[]byte(strconv.FormatUint(uint64(fi.Sys().(*syscall.Stat_t).Gid), 36)))
|
||||
|
||||
h.Write([]byte(fi.Mode().String()))
|
||||
h.Write([]byte(fi.ModTime().String()))
|
||||
h.Write([]byte(strconv.FormatInt(fi.Size(), 16)))
|
||||
|
|
|
|||
Loading…
Reference in New Issue