diff options
author | Unknown <joe2010xtmf@163.com> | 2014-06-20 00:25:23 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-06-20 00:25:23 -0400 |
commit | 6c8d630bef3a58860237856c648e56f4b9cea97d (patch) | |
tree | d1e10401573ddf63787e45642a3cb72dfb324351 /modules/log | |
parent | f147ad619a68440ef6c30d797a8217e687e8d51d (diff) |
Add database log adapter
Diffstat (limited to 'modules/log')
-rw-r--r-- | modules/log/log.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/log/log.go b/modules/log/log.go index f83ec0ad..a62baad1 100644 --- a/modules/log/log.go +++ b/modules/log/log.go @@ -33,7 +33,9 @@ func NewLogger(bufLen int64, mode, config string) { loggers = append(loggers, logger) } logger.SetLogFuncCallDepth(3) - logger.SetLogger(mode, config) + if err := logger.SetLogger(mode, config); err != nil { + Fatal("Fail to set logger(%s): %v", mode, err) + } } func Trace(format string, v ...interface{}) { |