adjusting logs

This commit is contained in:
Chris Lu 2014-03-19 04:46:42 -07:00
parent 96b67a7c35
commit 463589da01
2 changed files with 3 additions and 3 deletions

View file

@ -56,7 +56,7 @@ func writeJsonError(w http.ResponseWriter, r *http.Request, err error) {
}
func debug(params ...interface{}) {
glog.V(4).Infoln(params)
glog.V(3).Infoln(params)
}
func secure(whiteList []string, f func(w http.ResponseWriter, r *http.Request)) func(w http.ResponseWriter, r *http.Request) {

View file

@ -113,7 +113,7 @@ func (vs *VolumeServer) GetOrHeadHandler(w http.ResponseWriter, r *http.Request,
return
}
glog.V(2).Infoln("volume", volumeId, "reading", n)
glog.V(4).Infoln("volume", volumeId, "reading", n)
if !vs.store.HasVolume(volumeId) {
lookupResult, err := operation.Lookup(vs.masterNode, volumeId.String())
glog.V(2).Infoln("volume", volumeId, "found on", lookupResult, "error", err)
@ -127,7 +127,7 @@ func (vs *VolumeServer) GetOrHeadHandler(w http.ResponseWriter, r *http.Request,
}
cookie := n.Cookie
count, e := vs.store.Read(volumeId, n)
glog.V(2).Infoln("read bytes", count, "error", e)
glog.V(4).Infoln("read bytes", count, "error", e)
if e != nil || count <= 0 {
glog.V(0).Infoln("read error:", e, r.URL.Path)
w.WriteHeader(http.StatusNotFound)