From 659b3d3ba8f196ec4d415b6fda33f969dfdc9e0e Mon Sep 17 00:00:00 2001 From: li wei <309980030@qq.com> Date: Wed, 1 Sep 2021 21:34:26 +0800 Subject: [PATCH] Update logger_test.go Remove unnecessary comments --- logger_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/logger_test.go b/logger_test.go index ffd92e2..ea1a719 100644 --- a/logger_test.go +++ b/logger_test.go @@ -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)]