aboutsummaryrefslogtreecommitdiff
path: root/weed/stats/metrics.go
diff options
context:
space:
mode:
authorAleksey Kosov <rusyak777@list.ru>2025-02-24 18:58:43 +0300
committerGitHub <noreply@github.com>2025-02-24 07:58:43 -0800
commitef4eda0761867d04c0908c43f51b2ef74f636a2a (patch)
treebcdf60deb0ad37504a95ef045a70a38b57b1b41c /weed/stats/metrics.go
parentbe74548cb51f757a026be5909d35b819c62eecd1 (diff)
downloadseaweedfs-ef4eda0761867d04c0908c43f51b2ef74f636a2a.tar.xz
seaweedfs-ef4eda0761867d04c0908c43f51b2ef74f636a2a.zip
added re-generating and writing the Volume UUID if it is empty (#6568)
Diffstat (limited to 'weed/stats/metrics.go')
-rw-r--r--weed/stats/metrics.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/weed/stats/metrics.go b/weed/stats/metrics.go
index 76e3afbdf..26164ffc3 100644
--- a/weed/stats/metrics.go
+++ b/weed/stats/metrics.go
@@ -1,7 +1,6 @@
package stats
import (
- "log"
"net"
"net/http"
"os"
@@ -436,7 +435,7 @@ func StartMetricsServer(ip string, port int) {
return
}
http.Handle("/metrics", promhttp.HandlerFor(Gather, promhttp.HandlerOpts{}))
- log.Fatal(http.ListenAndServe(JoinHostPort(ip, port), nil))
+ glog.Fatal(http.ListenAndServe(JoinHostPort(ip, port), nil))
}
func SourceName(port uint32) string {