Updated logging
This commit is contained in:
parent
ff9e4b3e3a
commit
4859b622a5
6 changed files with 13 additions and 12 deletions
|
|
@ -1,14 +1,13 @@
|
|||
package Commands
|
||||
|
||||
import (
|
||||
"github.com/sirupsen/logrus"
|
||||
"github.com/urfave/cli/v2"
|
||||
"lpm-cli/Lotus"
|
||||
)
|
||||
|
||||
func NewListCommand() *cli.Command{
|
||||
|
||||
logger := Lotus.CreateLogger("listCommand", logrus.WarnLevel)
|
||||
logger := Lotus.Logger("listCommand")
|
||||
|
||||
return &cli.Command{
|
||||
Name: "list",
|
||||
|
|
|
|||
|
|
@ -1,14 +1,13 @@
|
|||
package Commands
|
||||
|
||||
import (
|
||||
"github.com/sirupsen/logrus"
|
||||
"github.com/urfave/cli/v2"
|
||||
"lpm-cli/Lotus"
|
||||
)
|
||||
|
||||
func NewPullCommand() *cli.Command{
|
||||
|
||||
logger := Lotus.CreateLogger("pullCommand", logrus.WarnLevel)
|
||||
logger := Lotus.Logger("pullCommand")
|
||||
|
||||
return &cli.Command {
|
||||
Name: "pull",
|
||||
|
|
|
|||
|
|
@ -1,14 +1,13 @@
|
|||
package Commands
|
||||
|
||||
import (
|
||||
"github.com/sirupsen/logrus"
|
||||
"github.com/urfave/cli/v2"
|
||||
"lpm-cli/Lotus"
|
||||
)
|
||||
|
||||
func NewPushCommand() *cli.Command {
|
||||
|
||||
logger := Lotus.CreateLogger("pushCommand", logrus.WarnLevel)
|
||||
logger := Lotus.Logger("pushCommand")
|
||||
|
||||
return &cli.Command {
|
||||
Name: "push",
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@ import (
|
|||
"fmt"
|
||||
"github.com/urfave/cli/v2"
|
||||
"google.golang.org/grpc"
|
||||
"github.com/sirupsen/logrus"
|
||||
"lpm-cli/Lotus"
|
||||
proto "lpm-cli/Proto/lpm/go"
|
||||
"time"
|
||||
|
|
@ -13,7 +12,7 @@ import (
|
|||
|
||||
func NewSearchCommand() *cli.Command {
|
||||
|
||||
logger := Lotus.CreateLogger("searchCommand", logrus.WarnLevel)
|
||||
logger := Lotus.Logger("searchCommand")
|
||||
|
||||
return &cli.Command {
|
||||
Name: "search",
|
||||
|
|
|
|||
Reference in a new issue