Skip to content

Commit

Permalink
warn()
Browse files Browse the repository at this point in the history
Signed-off-by: Prateeknandle <prateeknandle@gmail.com>
  • Loading branch information
Prateeknandle committed Feb 7, 2023
1 parent d7fe733 commit f021770
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/cluster/clusterMgmtHandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func getResponseBytes(method string, url string, data map[string]interface{}) []
dumpHttpClient(nil, resp)
defer func() {
if err := resp.Body.Close(); err != nil {
log.Error().Msgf("Error closing http stream %s\n", err)
log.Warn().Msgf("Error closing http stream %s\n", err)
}
}()

Expand Down
2 changes: 1 addition & 1 deletion src/cluster/kvmServiceHandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func GetResourcesFromKvmService() ([]string, []types.Pod) {
}
defer func() {
if err := resp.Body.Close(); err != nil {
log.Error().Msgf("Error closing http stream %s\n", err)
log.Warn().Msgf("Error closing http stream %s\n", err)
}
}()

Expand Down
2 changes: 1 addition & 1 deletion src/recommendpolicy/downloadTemplates.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ func unZip(source, dest string) error {
}
defer func() {
if err := open.Close(); err != nil {
log.Error().Msgf("Error closing file %s\n", err)
log.Warn().Msgf("Error closing file %s\n", err)
}
}()
}
Expand Down

0 comments on commit f021770

Please sign in to comment.