Skip to content

Commit

Permalink
fix(l2geth): add an env var METRICS_ENABLE for MetricsEnabledFlag
Browse files Browse the repository at this point in the history
  • Loading branch information
timmyers committed May 21, 2021
1 parent 68871b7 commit 0ce4cc8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/two-suits-care.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@eth-optimism/l2geth': patch
---

add an env var METRICS_ENABLE for MetricsEnabledFlag
2 changes: 2 additions & 0 deletions l2geth/cmd/utils/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -755,6 +755,8 @@ var (
MetricsEnabledFlag = cli.BoolFlag{
Name: "metrics",
Usage: "Enable metrics collection and reporting",

EnvVar: "METRICS_ENABLE",
}
MetricsEnabledExpensiveFlag = cli.BoolFlag{
Name: "metrics.expensive",
Expand Down

0 comments on commit 0ce4cc8

Please sign in to comment.