function change

This commit is contained in:
JessonChan 2016-03-24 17:46:52 +08:00
parent a6c1377f91
commit 0fb4a8af24
1 changed files with 2 additions and 2 deletions

View File

@ -511,8 +511,8 @@ func SetLogFuncCall(b bool) {
}
// SetLogger sets a new logger.
func SetLogger(adaptername string, config string) error {
err := beeLogger.SetLogger(adaptername, config)
func SetLogger(adapter string, config ...string) error {
err := beeLogger.SetLogger(adapter, config...)
if err != nil {
return err
}