Commit f2ddf36f authored by Levin Zimmermann's avatar Levin Zimmermann

wcfs: applying Kirills suggestions for improved debug log

parent af3c514e
...@@ -909,7 +909,7 @@ retry: ...@@ -909,7 +909,7 @@ retry:
if log.V(2) { if log.V(2) {
// debug dump δF // debug dump δF
log.Infof("\n\nS: handleδZ: δF (#%d):\n", len(δF.ByFile)) log.Infof("\n\nS: >>> handleδZ: δF (#%d):\n", len(δF.ByFile))
for foid, δfile := range δF.ByFile { for foid, δfile := range δF.ByFile {
blkv := δfile.Blocks.Elements() blkv := δfile.Blocks.Elements()
sort.Slice(blkv, func(i, j int) bool { sort.Slice(blkv, func(i, j int) bool {
...@@ -925,6 +925,8 @@ retry: ...@@ -925,6 +925,8 @@ retry:
log.Infof("S: \t- %s\t%2s %v\n", foid, flags, blkv) log.Infof("S: \t- %s\t%2s %v\n", foid, flags, blkv)
} }
log.Infof("\n\n") log.Infof("\n\n")
defer log.Infof("\n\nS: <<< handleδZ\n")
} }
// put zhead's transaction into ctx because we will potentially need to // put zhead's transaction into ctx because we will potentially need to
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment