add zap for default logger

This commit is contained in:
zhiqiang feng
2020-12-28 11:06:36 +08:00
parent f43412b235
commit 2cbfbdbbca
9 changed files with 81 additions and 45 deletions
+1 -3
View File
@@ -16,8 +16,6 @@ limitations under the License.
package cmd
import (
"log"
"github.com/spf13/cobra"
"it2000.com.cn/tele-recv/utils"
)
@@ -35,7 +33,7 @@ Test load sqlite database and init table`,
}
func test() {
log.Println("Testing environment")
l.Info("Testing environment")
_ = utils.OpenPort(device, baudrate, bytesize, stopbits)
err := utils.InitDb(dbFile, dbInit)