Skip to content

Commit

Permalink
Fixes log
Browse files Browse the repository at this point in the history
  • Loading branch information
bomoko committed Nov 27, 2023
1 parent 835f5a5 commit fc20bab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/handler/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -348,15 +348,15 @@ func parserFilterLoopForPayloads(insights InsightsData, p PayloadInput, h *Messa
func processResultset(result []interface{}, err error, h *Messaging, apiClient graphql.Client, resource ResourceDestination, source string) error {
project, environment, apiErr := determineResourceFromLagoonAPI(apiClient, resource)
if apiErr != nil {
log.Println(apiErr)
slog.Error(apiErr.Error())
return apiErr
}

// Even if we don't find any new facts, we need to delete the existing ones
// since these may be the end product of a filter process
apiErr = h.deleteExistingFactsBySource(apiClient, environment, source, project)
if apiErr != nil {
log.Printf("%s", apiErr.Error())
slog.Error(apiErr.Error())
return apiErr
}

Expand Down

0 comments on commit fc20bab

Please sign in to comment.