From 225df4e8285da0ccfe56cb914ef5980b4decbe89 Mon Sep 17 00:00:00 2001
From: liuxiaolong <liuxiaolong@aiotlink.com>
Date: 星期二, 10 十一月 2020 12:03:28 +0800
Subject: [PATCH] Write方法去掉换行符

---
 logger.go |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/logger.go b/logger.go
index bf7635f..e50cb4e 100644
--- a/logger.go
+++ b/logger.go
@@ -14,7 +14,7 @@
 }
 
 func (l *BLog) Write(buf []byte) (n int, err error) {
-	l.logger.Debug(string(buf))
+	l.logger.Debug(strings.Replace(string(buf),"\n","", -1))
 	return len(buf),nil
 }
 

--
Gitblit v1.8.0