Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

print out unsupported methods

Chris Luc133e72f623f
diff --git a/weed/s3api/s3api_handlers.go b/weed/s3api/s3api_handlers.go
index ab1fc70380..ca7d35d208 100644
--- a/weed/s3api/s3api_handlers.go
+++ b/weed/s3api/s3api_handlers.go
@@ -10,6 +10,7 @@ import (
"net/http"
"net/url"
"time"
+ "github.com/chrislusf/seaweedfs/weed/glog"
)
type mimeType string
@@ -49,6 +50,7 @@ func (s3a *S3ApiServer) withFilerClient(fn func(filer_pb.SeaweedFilerClient) err
// If none of the http routes match respond with MethodNotAllowed
func notFoundHandler(w http.ResponseWriter, r *http.Request) {
+ glog.V(0).Infof("unsupported %s %s", r.Method, r.RequestURI)
writeErrorResponse(w, ErrMethodNotAllowed, r.URL)
}