From a25f371cbf90a962b83dab9eb94ffbd0203afbab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=95=86=E8=AE=AF=E5=9C=A8=E7=BA=BF?= Date: Mon, 21 Apr 2014 23:07:37 +0800 Subject: [PATCH] update MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 商讯在线 --- engine.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/engine.go b/engine.go index 671c1b87..0d7eb18f 100644 --- a/engine.go +++ b/engine.go @@ -34,6 +34,7 @@ type Engine struct { ShowErr bool ShowDebug bool ShowWarn bool + ShowInfo bool //Pool IConnectPool //Filters []core.Filter Logger ILogger // io.Writer @@ -190,7 +191,9 @@ func (engine *Engine) LogError(contents ...interface{}) { // logging error func (engine *Engine) LogInfo(contents ...interface{}) { - engine.Logger.Info(fmt.Sprintln(contents...)) + if engine.ShowInfo { + engine.Logger.Info(fmt.Sprintln(contents...)) + } } // logging debug