Skip to content

Commit

Permalink
Print debug from shards, too
Browse files Browse the repository at this point in the history
  • Loading branch information
EinKrebs committed Apr 16, 2024
1 parent 7e018bd commit abb4453
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/feature/spqr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,20 @@ func (tctx *testContext) saveLogs(scenario string) error {
var logsToSave map[string]string
switch {
case strings.HasPrefix(service, spqrShardName):
for file := range postgresqlLogsToSave {
remoteFile, err := tctx.composer.GetFile(service, file)
if err != nil {
errs = append(errs, err)
continue
}
content, err := io.ReadAll(remoteFile)
if err != nil {
errs = append(errs, err)
continue
}
fmt.Printf("\"%s\" shard logs:\n", service)
fmt.Println(string(content))
}
logsToSave = postgresqlLogsToSave
case strings.HasPrefix(service, spqrRouterName):
for file := range routerLogsToSave {
Expand Down

0 comments on commit abb4453

Please sign in to comment.