Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add support for loadgen log-levels #19

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions common/testrun.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ type TestRun struct {
TicketerLogLevel string `json:"ticketerLogLevel" feFieldTitle:"Ticketer Log Level" feFieldType:"loglevel"`
CoordinatorLogLevel string `json:"coordinatorLogLevel" feFieldTitle:"Coordinator Log Level" feFieldType:"loglevel"`
WatchtowerLogLevel string `json:"watchtowerLogLevel" feFieldTitle:"Watchtower Log Level" feFieldType:"loglevel"`
LoadGenLogLevel string `json:"loadGenLogLevel" feFieldTitle:"Loadgen Log Level" feFieldType:"loglevel"`
AtomizerTelemetryLevel string `json:"atomizerTelemetryLevel" feFieldTitle:"Atomizer Telemetry Level" feFieldType:"tellevel"`
ArchiverTelemetryLevel string `json:"archiverTelemetryLevel" feFieldTitle:"Archiver Telemetry Level" feFieldType:"tellevel"`
SentinelTelemetryLevel string `json:"sentinelTelemetryLevel" feFieldTitle:"Sentinel Telemetry Level" feFieldType:"tellevel"`
Expand Down
6 changes: 6 additions & 0 deletions coordinator/testruns/roleconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,12 @@ func (t *TestRunManager) RoleLogLevel(
loglevel = tr.WatchtowerLogLevel
case common.SystemRoleCoordinator:
loglevel = tr.CoordinatorLogLevel
case common.SystemRoleAtomizerCliWatchtower:
fallthrough
case common.SystemRoleParsecGen:
fallthrough
case common.SystemRoleTwoPhaseGen:
loglevel = tr.LoadGenLogLevel
}
return loglevel
}
Expand Down
Loading