mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-16 08:53:46 +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.PortalBootNodesFlag,
|
||||||
utils.PortalPrivateKeyFlag,
|
utils.PortalPrivateKeyFlag,
|
||||||
utils.PortalNetworksFlag,
|
utils.PortalNetworksFlag,
|
||||||
|
utils.LogFormatFlag,
|
||||||
}
|
}
|
||||||
historyRpcFlags = []cli.Flag{
|
historyRpcFlags = []cli.Flag{
|
||||||
utils.PortalRPCListenAddrFlag,
|
utils.PortalRPCListenAddrFlag,
|
||||||
|
|
@ -96,14 +97,11 @@ var (
|
||||||
utils.MetricsInfluxDBBucketFlag,
|
utils.MetricsInfluxDBBucketFlag,
|
||||||
utils.MetricsInfluxDBOrganizationFlag,
|
utils.MetricsInfluxDBOrganizationFlag,
|
||||||
}
|
}
|
||||||
logsFlags = []cli.Flag{
|
|
||||||
utils.LogFormatFlag,
|
|
||||||
}
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
app.Action = shisui
|
app.Action = shisui
|
||||||
app.Flags = flags.Merge(portalProtocolFlags, historyRpcFlags, metricsFlags, logsFlags)
|
app.Flags = flags.Merge(portalProtocolFlags, historyRpcFlags, metricsFlags)
|
||||||
flags.AutoEnvVars(app.Flags, "SHISUI")
|
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()),
|
Value: cli.NewStringSlice(portalwire.History.Name()),
|
||||||
}
|
}
|
||||||
LogFormatFlag = &cli.StringFlag{
|
LogFormatFlag = &cli.StringFlag{
|
||||||
Name: "log.format",
|
Name: "logformat",
|
||||||
Usage: "Log format to use (json|logfmt|terminal)",
|
Usage: "Log format to use (json|logfmt|terminal)",
|
||||||
Category: flags.LoggingCategory,
|
Category: flags.PortalNetworkCategory,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue