mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 23:26:44 +00:00
move logformat flag to portal network namespace
This commit is contained in:
parent
1865b12357
commit
eca301a9b1
2 changed files with 4 additions and 6 deletions
|
|
@ -73,6 +73,7 @@ var (
|
|||
utils.PortalBootNodesFlag,
|
||||
utils.PortalPrivateKeyFlag,
|
||||
utils.PortalNetworksFlag,
|
||||
utils.LogFormatFlag,
|
||||
}
|
||||
historyRpcFlags = []cli.Flag{
|
||||
utils.PortalRPCListenAddrFlag,
|
||||
|
|
@ -96,14 +97,11 @@ var (
|
|||
utils.MetricsInfluxDBBucketFlag,
|
||||
utils.MetricsInfluxDBOrganizationFlag,
|
||||
}
|
||||
logsFlags = []cli.Flag{
|
||||
utils.LogFormatFlag,
|
||||
}
|
||||
)
|
||||
|
||||
func init() {
|
||||
app.Action = shisui
|
||||
app.Flags = flags.Merge(portalProtocolFlags, historyRpcFlags, metricsFlags, logsFlags)
|
||||
app.Flags = flags.Merge(portalProtocolFlags, historyRpcFlags, metricsFlags)
|
||||
flags.AutoEnvVars(app.Flags, "SHISUI")
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1027,9 +1027,9 @@ Please note that --` + MetricsHTTPFlag.Name + ` must be set to start the server.
|
|||
Value: cli.NewStringSlice(portalwire.History.Name()),
|
||||
}
|
||||
LogFormatFlag = &cli.StringFlag{
|
||||
Name: "log.format",
|
||||
Name: "logformat",
|
||||
Usage: "Log format to use (json|logfmt|terminal)",
|
||||
Category: flags.LoggingCategory,
|
||||
Category: flags.PortalNetworkCategory,
|
||||
}
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue