diff options
| author | Chris Lu <chris.lu@gmail.com> | 2016-06-26 12:49:08 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2016-06-26 12:49:10 -0700 |
| commit | d0dbf6d2eafc0a8758427870a8536f2fe1b82cc6 (patch) | |
| tree | 5775c6fe15f314947a66b04ef97a8401a68acb53 | |
| parent | b6de5f00b3046d792b2d7427fa50a87f9fa67a04 (diff) | |
| download | seaweedfs-d0dbf6d2eafc0a8758427870a8536f2fe1b82cc6.tar.xz seaweedfs-d0dbf6d2eafc0a8758427870a8536f2fe1b82cc6.zip | |
adjust logging
| -rw-r--r-- | weed/security/guard.go | 2 | ||||
| -rw-r--r-- | weed/topology/topology_vacuum.go | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/weed/security/guard.go b/weed/security/guard.go index 76f64cc0e..dea3b12f2 100644 --- a/weed/security/guard.go +++ b/weed/security/guard.go @@ -127,7 +127,7 @@ func (g *Guard) checkWhiteList(w http.ResponseWriter, r *http.Request) error { } } - glog.V(1).Infof("Not in whitelist: %s", r.RemoteAddr) + glog.V(0).Infof("Not in whitelist: %s", r.RemoteAddr) return fmt.Errorf("Not in whitelis: %s", r.RemoteAddr) } diff --git a/weed/topology/topology_vacuum.go b/weed/topology/topology_vacuum.go index 8cf8dfbeb..3a6fcbae2 100644 --- a/weed/topology/topology_vacuum.go +++ b/weed/topology/topology_vacuum.go @@ -80,15 +80,14 @@ func batchVacuumVolumeCommit(vl *VolumeLayout, vid storage.VolumeId, locationlis return isCommitSuccess } func (t *Topology) Vacuum(garbageThreshold string) int { - glog.V(0).Infoln("Start vacuum on demand") + glog.V(0).Infof("Start vacuum on demand with threshold:%s", garbageThreshold) for _, col := range t.collectionMap.Items() { c := col.(*Collection) - glog.V(0).Infoln("vacuum on collection:", c.Name) for _, vl := range c.storageType2VolumeLayout.Items() { if vl != nil { volumeLayout := vl.(*VolumeLayout) for vid, locationlist := range volumeLayout.vid2location { - glog.V(0).Infoln("vacuum on collection:", c.Name, "volume", vid) + glog.V(0).Infof("check vacuum on collection:%s volume:%d", c.Name, vid) if batchVacuumVolumeCheck(volumeLayout, vid, locationlist, garbageThreshold) { if batchVacuumVolumeCompact(volumeLayout, vid, locationlist) { batchVacuumVolumeCommit(volumeLayout, vid, locationlist) |
