From 23d0d656dae27043649457fe31fdd49676052bb1 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Sat, 31 May 2014 12:22:06 +0800 Subject: [PATCH] ShowSQL bug fixed --- engine.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine.go b/engine.go index d2db0cc7..46180438 100644 --- a/engine.go +++ b/engine.go @@ -175,9 +175,9 @@ func (engine *Engine) Ping() error { func (engine *Engine) logSQL(sqlStr string, sqlArgs ...interface{}) { if engine.ShowSQL { if len(sqlArgs) > 0 { - engine.LogInfo("[sql]", sqlStr, "[args]", sqlArgs) + engine.Logger.Info(fmt.Sprintln("[sql]", sqlStr, "[args]", sqlArgs)) } else { - engine.LogInfo("[sql]", sqlStr) + engine.Logger.Info(fmt.Sprintln("[sql]", sqlStr)) } } }