adjust printout
This commit is contained in:
@@ -11,7 +11,7 @@ func track(f http.HandlerFunc, action string) http.HandlerFunc {
|
|||||||
|
|
||||||
return func(w http.ResponseWriter, r *http.Request) {
|
return func(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
||||||
w.Header().Set("Server", "Seaweed S3 "+util.VERSION)
|
w.Header().Set("Server", "SeaweedFS S3 "+util.VERSION)
|
||||||
|
|
||||||
start := time.Now()
|
start := time.Now()
|
||||||
stats_collect.S3RequestCounter.WithLabelValues(action).Inc()
|
stats_collect.S3RequestCounter.WithLabelValues(action).Inc()
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ security settings:
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
func (vs *VolumeServer) privateStoreHandler(w http.ResponseWriter, r *http.Request) {
|
func (vs *VolumeServer) privateStoreHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
w.Header().Set("Server", "Seaweed Volume "+util.VERSION)
|
w.Header().Set("Server", "SeaweedFS Volume "+util.VERSION)
|
||||||
switch r.Method {
|
switch r.Method {
|
||||||
case "GET", "HEAD":
|
case "GET", "HEAD":
|
||||||
stats.ReadRequest()
|
stats.ReadRequest()
|
||||||
@@ -41,7 +41,7 @@ func (vs *VolumeServer) privateStoreHandler(w http.ResponseWriter, r *http.Reque
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (vs *VolumeServer) publicReadOnlyHandler(w http.ResponseWriter, r *http.Request) {
|
func (vs *VolumeServer) publicReadOnlyHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
w.Header().Set("Server", "Seaweed Volume "+util.VERSION)
|
w.Header().Set("Server", "SeaweedFS Volume "+util.VERSION)
|
||||||
switch r.Method {
|
switch r.Method {
|
||||||
case "GET":
|
case "GET":
|
||||||
stats.ReadRequest()
|
stats.ReadRequest()
|
||||||
|
|||||||
Reference in New Issue
Block a user