From 1062117562cc988064a5f5caca0cfe83a037e3e5 Mon Sep 17 00:00:00 2001 From: frrist Date: Tue, 23 Mar 2021 16:19:22 -0700 Subject: [PATCH] chore: export log cli commands --- cli/cmd.go | 4 ++-- cli/log.go | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/cli/cmd.go b/cli/cmd.go index e05107933..ce39f1566 100644 --- a/cli/cmd.go +++ b/cli/cmd.go @@ -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), diff --git a/cli/log.go b/cli/log.go index a4aeaad5c..4ab6aa748 100644 --- a/cli/log.go +++ b/cli/log.go @@ -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]",