Skip to content

Commit

Permalink
Add show_coverage_report to logging conf (#923)
Browse files Browse the repository at this point in the history
* Add show_coverage_report to logging conf

* Add omitempty
  • Loading branch information
lukaszcl committed Apr 23, 2024
1 parent 04f103d commit 4c19956
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions config/logging.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ import (
)

type LoggingConfig struct {
TestLogCollect *bool `toml:"test_log_collect"`
RunId *string `toml:"run_id"`
Loki *LokiConfig `toml:"Loki"`
Grafana *GrafanaConfig `toml:"Grafana"`
LogStream *LogStreamConfig `toml:"LogStream"`
TestLogCollect *bool `toml:"test_log_collect,omitempty"`
ShowHTMLCoverageReport *bool `toml:"show_html_coverage_report,omitempty"` // Show reports with go coverage data
RunId *string `toml:"run_id,omitempty"`
Loki *LokiConfig `toml:"Loki,omitempty"`
Grafana *GrafanaConfig `toml:"Grafana,omitempty"`
LogStream *LogStreamConfig `toml:"LogStream,omitempty"`
}

// Validate executes config validation for LogStream, Grafana and Loki
Expand Down

0 comments on commit 4c19956

Please sign in to comment.