forked from toolshed/abra
refactor: use central logger
This commit is contained in:
@ -3,7 +3,7 @@ package internal
|
||||
import (
|
||||
"os"
|
||||
|
||||
"github.com/sirupsen/logrus"
|
||||
"coopcloud.tech/abra/pkg/log"
|
||||
"github.com/urfave/cli"
|
||||
)
|
||||
|
||||
@ -11,8 +11,8 @@ import (
|
||||
// terminal, and shows the help command.
|
||||
func ShowSubcommandHelpAndError(c *cli.Context, err interface{}) {
|
||||
if err2 := cli.ShowSubcommandHelp(c); err2 != nil {
|
||||
logrus.Error(err2)
|
||||
log.Error(err2)
|
||||
}
|
||||
logrus.Error(err)
|
||||
log.Error(err)
|
||||
os.Exit(1)
|
||||
}
|
||||
|
Reference in New Issue
Block a user