Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
d62fe5de
Commit
d62fe5de
authored
Mar 16, 2023
by
Joshua Gutow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
op-node: Remove leftover log flags
parent
08b96e2f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
23 deletions
+10
-23
flags.go
op-node/flags/flags.go
+10
-23
No files found.
op-node/flags/flags.go
View file @
d62fe5de
...
@@ -7,6 +7,7 @@ import (
...
@@ -7,6 +7,7 @@ import (
"github.com/ethereum-optimism/optimism/op-node/chaincfg"
"github.com/ethereum-optimism/optimism/op-node/chaincfg"
"github.com/ethereum-optimism/optimism/op-node/sources"
"github.com/ethereum-optimism/optimism/op-node/sources"
oplog
"github.com/ethereum-optimism/optimism/op-service/log"
"github.com/urfave/cli"
"github.com/urfave/cli"
)
)
...
@@ -113,23 +114,6 @@ var (
...
@@ -113,23 +114,6 @@ var (
Required
:
false
,
Required
:
false
,
Value
:
time
.
Second
*
12
*
32
,
Value
:
time
.
Second
*
12
*
32
,
}
}
LogLevelFlag
=
cli
.
StringFlag
{
Name
:
"log.level"
,
Usage
:
"The lowest log level that will be output"
,
Value
:
"info"
,
EnvVar
:
prefixEnvVar
(
"LOG_LEVEL"
),
}
LogFormatFlag
=
cli
.
StringFlag
{
Name
:
"log.format"
,
Usage
:
"Format the log output. Supported formats: 'text', 'json'"
,
Value
:
"text"
,
EnvVar
:
prefixEnvVar
(
"LOG_FORMAT"
),
}
LogColorFlag
=
cli
.
BoolFlag
{
Name
:
"log.color"
,
Usage
:
"Color the log output"
,
EnvVar
:
prefixEnvVar
(
"LOG_COLOR"
),
}
MetricsEnabledFlag
=
cli
.
BoolFlag
{
MetricsEnabledFlag
=
cli
.
BoolFlag
{
Name
:
"metrics.enabled"
,
Name
:
"metrics.enabled"
,
Usage
:
"Enable the metrics server"
,
Usage
:
"Enable the metrics server"
,
...
@@ -200,7 +184,7 @@ var requiredFlags = []cli.Flag{
...
@@ -200,7 +184,7 @@ var requiredFlags = []cli.Flag{
RPCListenPort
,
RPCListenPort
,
}
}
var
optionalFlags
=
append
(
[]
cli
.
Flag
{
var
optionalFlags
=
[]
cli
.
Flag
{
RollupConfig
,
RollupConfig
,
Network
,
Network
,
L1TrustRPC
,
L1TrustRPC
,
...
@@ -211,9 +195,6 @@ var optionalFlags = append([]cli.Flag{
...
@@ -211,9 +195,6 @@ var optionalFlags = append([]cli.Flag{
SequencerStoppedFlag
,
SequencerStoppedFlag
,
SequencerL1Confs
,
SequencerL1Confs
,
L1EpochPollIntervalFlag
,
L1EpochPollIntervalFlag
,
LogLevelFlag
,
LogFormatFlag
,
LogColorFlag
,
RPCEnableAdmin
,
RPCEnableAdmin
,
MetricsEnabledFlag
,
MetricsEnabledFlag
,
MetricsAddrFlag
,
MetricsAddrFlag
,
...
@@ -226,10 +207,16 @@ var optionalFlags = append([]cli.Flag{
...
@@ -226,10 +207,16 @@ var optionalFlags = append([]cli.Flag{
HeartbeatMonikerFlag
,
HeartbeatMonikerFlag
,
HeartbeatURLFlag
,
HeartbeatURLFlag
,
BackupL2UnsafeSyncRPC
,
BackupL2UnsafeSyncRPC
,
}
,
p2pFlags
...
)
}
// Flags contains the list of configuration options available to the binary.
// Flags contains the list of configuration options available to the binary.
var
Flags
=
append
(
requiredFlags
,
optionalFlags
...
)
var
Flags
[]
cli
.
Flag
func
init
()
{
optionalFlags
=
append
(
optionalFlags
,
p2pFlags
...
)
optionalFlags
=
append
(
optionalFlags
,
oplog
.
CLIFlags
(
envVarPrefix
)
...
)
Flags
=
append
(
requiredFlags
,
optionalFlags
...
)
}
func
CheckRequired
(
ctx
*
cli
.
Context
)
error
{
func
CheckRequired
(
ctx
*
cli
.
Context
)
error
{
l1NodeAddr
:=
ctx
.
GlobalString
(
L1NodeAddr
.
Name
)
l1NodeAddr
:=
ctx
.
GlobalString
(
L1NodeAddr
.
Name
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment