Merge pull request #109 from admpub/master

update
This commit is contained in:
S.W.H 2014-04-21 23:18:00 +08:00
commit 991c033dac
1 changed files with 4 additions and 1 deletions

View File

@ -34,6 +34,7 @@ type Engine struct {
ShowErr bool ShowErr bool
ShowDebug bool ShowDebug bool
ShowWarn bool ShowWarn bool
ShowInfo bool
//Pool IConnectPool //Pool IConnectPool
//Filters []core.Filter //Filters []core.Filter
Logger ILogger // io.Writer Logger ILogger // io.Writer
@ -190,7 +191,9 @@ func (engine *Engine) LogError(contents ...interface{}) {
// logging error // logging error
func (engine *Engine) LogInfo(contents ...interface{}) { func (engine *Engine) LogInfo(contents ...interface{}) {
if engine.ShowInfo {
engine.Logger.Info(fmt.Sprintln(contents...)) engine.Logger.Info(fmt.Sprintln(contents...))
}
} }
// logging debug // logging debug