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.

fix glog format

Chris Lu6cedaf43561e
diff --git a/go/glog/glog.go b/go/glog/glog.go
index 28af70191d..d18c6f7bb6 100644
--- a/go/glog/glog.go
+++ b/go/glog/glog.go
@@ -557,12 +557,10 @@ func (l *loggingT) header(s severity) *buffer {
buf.twoDigits(9, minute)
buf.tmp[11] = ':'
buf.twoDigits(12, second)
- //buf.tmp[14] = '.'
- //buf.nDigits(6, 15, now.Nanosecond()/1000)
- buf.tmp[21] = ' '
- buf.nDigits(5, 22, pid) // TODO: should be TID
- buf.tmp[27] = ' '
- buf.Write(buf.tmp[:28])
+ buf.tmp[14] = ' '
+ buf.nDigits(5, 15, pid) // TODO: should be TID
+ buf.tmp[20] = ' '
+ buf.Write(buf.tmp[:21])
buf.WriteString(file)
buf.tmp[0] = ':'
n := buf.someDigits(1, line)