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.

better log messages

[email protected]3c98f1a11910
diff --git a/weed-fs/src/cmd/weedc.go b/weed-fs/src/cmd/weedc.go
index 3b37cebe87..9336c17756 100644
--- a/weed-fs/src/cmd/weedc.go
+++ b/weed-fs/src/cmd/weedc.go
@@ -141,7 +141,7 @@ func main() {
}()
log.Println("store joined at", *metaServer)
- log.Println("Start storage service at http://127.0.0.1:" + strconv.Itoa(*port))
+ log.Println("Start storage service at http://127.0.0.1:" + strconv.Itoa(*port), "public url", *publicUrl)
e := http.ListenAndServe(":"+strconv.Itoa(*port), nil)
if e != nil {
log.Fatalf("Fail to start:", e.String())
diff --git a/weed-fs/src/pkg/storage/store.go b/weed-fs/src/pkg/storage/store.go
index 63e714a168..900c74bf1c 100644
--- a/weed-fs/src/pkg/storage/store.go
+++ b/weed-fs/src/pkg/storage/store.go
@@ -51,7 +51,7 @@ func NewStore(port int, publicUrl, dirname string, volumeListString string) (s *
}
}
}
- log.Println("Store started on dir:", dirname, "with", len(s.volumes), "existing volumes")
+ log.Println("Store started on dir:", dirname, "with", len(s.volumes), "volumes")
return
}
@@ -76,7 +76,6 @@ func (s *Store) Join(mserver string) {
values.Add("port", strconv.Itoa(s.Port))
values.Add("publicUrl", s.PublicUrl)
values.Add("volumes", string(bytes))
- log.Println("Exiting volumes", string(bytes))
util.Post("http://"+mserver+"/dir/join", values)
}
func (s *Store) Close() {