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
21928467
Unverified
Commit
21928467
authored
Feb 02, 2022
by
Matthew Slipper
Committed by
GitHub
Feb 02, 2022
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2117 from cfromknecht/bss-log-level
fix: actually allow BSS log level to be set via flags
parents
b9c037f0
c775ffbe
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
happy-poems-impress.md
.changeset/happy-poems-impress.md
+5
-0
config.go
go/batch-submitter/config.go
+1
-4
No files found.
.changeset/happy-poems-impress.md
0 → 100644
View file @
21928467
---
'
@eth-optimism/batch-submitter-service'
:
patch
---
fix BSS log-level flag parsing
go/batch-submitter/config.go
View file @
21928467
...
...
@@ -190,6 +190,7 @@ func NewConfig(ctx *cli.Context) (Config, error) {
SafeMinimumEtherBalance
:
ctx
.
GlobalUint64
(
flags
.
SafeMinimumEtherBalanceFlag
.
Name
),
ClearPendingTxs
:
ctx
.
GlobalBool
(
flags
.
ClearPendingTxsFlag
.
Name
),
/* Optional Flags */
LogLevel
:
ctx
.
GlobalString
(
flags
.
LogLevelFlag
.
Name
),
SentryEnable
:
ctx
.
GlobalBool
(
flags
.
SentryEnableFlag
.
Name
),
SentryDsn
:
ctx
.
GlobalString
(
flags
.
SentryDsnFlag
.
Name
),
SentryTraceRate
:
ctx
.
GlobalDuration
(
flags
.
SentryTraceRateFlag
.
Name
),
...
...
@@ -217,10 +218,6 @@ func NewConfig(ctx *cli.Context) (Config, error) {
// ensure that it is well-formed.
func
ValidateConfig
(
cfg
*
Config
)
error
{
// Sanity check log level.
if
cfg
.
LogLevel
==
""
{
cfg
.
LogLevel
=
"debug"
}
_
,
err
:=
log
.
LvlFromString
(
cfg
.
LogLevel
)
if
err
!=
nil
{
return
err
...
...
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