chore: export log cli commands

This commit is contained in:
frrist 2021-03-23 16:19:22 -07:00
parent 6827f2dce3
commit 1062117562
2 changed files with 7 additions and 7 deletions

View File

@ -58,7 +58,7 @@ var GetWorkerAPI = cliutil.GetWorkerAPI
var CommonCommands = []*cli.Command{
NetCmd,
authCmd,
logCmd,
LogCmd,
waitApiCmd,
fetchParamCmd,
pprofCmd,
@ -75,7 +75,7 @@ var Commands = []*cli.Command{
WithCategory("developer", mpoolCmd),
WithCategory("developer", stateCmd),
WithCategory("developer", chainCmd),
WithCategory("developer", logCmd),
WithCategory("developer", LogCmd),
WithCategory("developer", waitApiCmd),
WithCategory("developer", fetchParamCmd),
WithCategory("network", NetCmd),

View File

@ -7,16 +7,16 @@ import (
"golang.org/x/xerrors"
)
var logCmd = &cli.Command{
var LogCmd = &cli.Command{
Name: "log",
Usage: "Manage logging",
Subcommands: []*cli.Command{
logList,
logSetLevel,
LogList,
LogSetLevel,
},
}
var logList = &cli.Command{
var LogList = &cli.Command{
Name: "list",
Usage: "List log systems",
Action: func(cctx *cli.Context) error {
@ -41,7 +41,7 @@ var logList = &cli.Command{
},
}
var logSetLevel = &cli.Command{
var LogSetLevel = &cli.Command{
Name: "set-level",
Usage: "Set log level",
ArgsUsage: "[level]",