mirror of
https://github.com/wyx2685/V2bX.git
synced 2026-02-04 04:30:08 +00:00
change log to logrus
This commit is contained in:
@@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user