change log to logrus

This commit is contained in:
yuzuki999
2023-06-30 11:07:27 +08:00
parent 07b7ec9b3e
commit 65629c0dfb
9 changed files with 105 additions and 59 deletions

View File

@@ -1,7 +1,7 @@
package cmd
import (
"log"
log "github.com/sirupsen/logrus"
_ "github.com/Yuzuki616/V2bX/core/imports"
"github.com/spf13/cobra"
@@ -14,6 +14,6 @@ var command = &cobra.Command{
func Run() {
err := command.Execute()
if err != nil {
log.Println("execute failed, error:", err)
log.WithField("err", err).Error("Execute command failed")
}
}