summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doPull.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/doPull.go b/doPull.go
index 8303ff8..a850816 100644
--- a/doPull.go
+++ b/doPull.go
@@ -26,7 +26,13 @@ func doPull() error {
newrepo.URL = repo.URL
submit.Append(newrepo)
}
- submit.HttpPost(myServer(), "check")
+ updatepb, regPB, err := submit.HttpPost(myServer(), "check")
+ if regPB == nil || err != nil {
+ log.Info("regPB==nil or err:", err)
+ return nil
+ }
+ log.Infof("pull check %s pb.Len()=%d client.Len()=%d server.Len()=%d err=%v\n", regPB.URL, updatepb.Len(), regPB.ClientDataLen, regPB.ServerDataLen, err)
+ return nil
}
// below this, you must not be in 'normal' mode