Skip to content

Commit

Permalink
log only when necessary (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
yaelgen authored May 30, 2022
1 parent 8e8ecf4 commit 0077787
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:

- uses: actions/setup-go@v2
with:
go-version: "^1.14.3"
go-version: "1.14"

- uses: actions/cache@v2
with:
Expand All @@ -31,7 +31,7 @@ jobs:

- uses: actions/setup-go@v2
with:
go-version: "^1.14.3"
go-version: "1.14"

- uses: actions/cache@v2
with:
Expand Down
4 changes: 3 additions & 1 deletion resourcescaler.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,9 @@ func (s *AppResourceScaler) GetResources() ([]scaler_types.Resource, error) {
}
}

s.logger.DebugWith("Found services", "services", resources)
if len(resources) != 0 {
s.logger.DebugWith("Found services", "services", resources)
}

return resources, nil
}
Expand Down

0 comments on commit 0077787

Please sign in to comment.