Update logger_test.go

Remove unnecessary comments
This commit is contained in:
li wei 2021-09-01 21:34:26 +08:00 committed by GitHub
parent b9589019f7
commit 659b3d3ba8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -194,7 +194,7 @@ func (t TraceIdHook) Fire(entry *Entry) error {
type LogFormatter struct{}
//格式详情
func (s *LogFormatter) Format(entry *Entry) ([]byte, error) {
timestamp := time.Now().Format("2006-01-02 15:04:05")
var file string
@ -212,7 +212,6 @@ func (s *LogFormatter) Format(entry *Entry) ([]byte, error) {
return []byte(msg), nil
}
// 获取当前协程id
func getGID() uint64 {
b := make([]byte, 64)
b = b[:runtime.Stack(b, false)]