diff options
| author | chrislusf <chris.lu@gmail.com> | 2015-07-11 09:55:45 -0700 |
|---|---|---|
| committer | chrislusf <chris.lu@gmail.com> | 2015-07-11 09:55:45 -0700 |
| commit | d8bb3845ae45a60344fbe647b76f97b0642f783b (patch) | |
| tree | 6961c02328e94ef057a85f6607bb15e0c3727225 /go | |
| parent | 9bf10975bd832759963c0be350bc5a48ddbbae4d (diff) | |
| download | seaweedfs-d8bb3845ae45a60344fbe647b76f97b0642f783b.tar.xz seaweedfs-d8bb3845ae45a60344fbe647b76f97b0642f783b.zip | |
fix glog format
Diffstat (limited to 'go')
| -rw-r--r-- | go/glog/glog_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/go/glog/glog_test.go b/go/glog/glog_test.go index 0fb376e1f..12c3acf3d 100644 --- a/go/glog/glog_test.go +++ b/go/glog/glog_test.go @@ -180,7 +180,7 @@ func TestHeader(t *testing.T) { pid = 1234 Info("test") var line int - format := "I0102 15:04:05.067890 1234 glog_test.go:%d] test\n" + format := "I0102 15:04:05 1234 glog_test.go:%d] test\n" n, err := fmt.Sscanf(contents(infoLog), format, &line) if n != 1 || err != nil { t.Errorf("log format error: %d elements, error %s:\n%s", n, err, contents(infoLog)) |
