Skip to content

Commit

Permalink
Enabled monitoring by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Mykola Polonskyi committed May 13, 2021
1 parent 5fb44d6 commit 13198d4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,9 @@ func main() {
allWorkers = append(allWorkers, mirrorWorker)
}

if os.Getenv("ANODOT_REPORT_MONITORING_METRICS") == "true" {
ifReport := defaultIfBlank(os.Getenv("ANODOT_REPORT_MONITORING_METRICS"), "true")

if ifReport != "false" {
url, err := url.Parse(DEFAULT_ANODOT_URL)
if err != nil {
log.Fatalf("Could not parse Anodot url: %v", err)
Expand Down

0 comments on commit 13198d4

Please sign in to comment.