Skip to content
Browse files

Log updates.

  • Loading branch information...
1 parent 20080a0 commit f14894298a4c53204532f282083a77c518fdb77f @dustin dustin committed Oct 19, 2012
Showing with 3 additions and 5 deletions.
  1. +3 −5 vbmap.go
View
8 vbmap.go
@@ -84,8 +84,6 @@ func getBucket(req *http.Request) *couchbase.Bucket {
maybefatal(err, "Error getting bucket: %v", err)
}
- log.Printf("Got bucket %v from %v", bucketName, clusterurl)
-
return bucket
}
@@ -105,7 +103,7 @@ func displayMap(w http.ResponseWriter, req *http.Request, bucket *couchbase.Buck
func mapHandler(w http.ResponseWriter, req *http.Request) {
defer func() {
if x := recover(); x != nil {
- log.Printf("panic: recovering from %v", x)
+ log.Printf("recovering from %v", x)
}
}()
bucket := getBucket(req)
@@ -166,7 +164,7 @@ func getStats(bucket *couchbase.Bucket, commonSuffixMC string) map[string]map[st
func statsHandler(w http.ResponseWriter, req *http.Request) {
defer func() {
if x := recover(); x != nil {
- log.Printf("panic: recovering from %v", x)
+ log.Printf("recovering from %v", x)
}
}()
bucket := getBucket(req)
@@ -186,7 +184,7 @@ func statsHandler(w http.ResponseWriter, req *http.Request) {
func vbHandler(w http.ResponseWriter, req *http.Request) {
defer func() {
if x := recover(); x != nil {
- log.Printf("panic: recovering from %v", x)
+ log.Printf("recovering from %v", x)
}
}()

0 comments on commit f148942

Please sign in to comment.
Something went wrong with that request. Please try again.