Skip to content

Commit

Permalink
feat: enhance error logging in fusion_brain availability check
Browse files Browse the repository at this point in the history
  • Loading branch information
azalio committed Dec 28, 2024
1 parent 0da070b commit 19d2ac2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/service/fusion_brain_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,10 @@ func (s *FusionBrainServiceImpl) checkAvailability(ctx context.Context) (bool, e
}
if err := json.NewDecoder(resp.Body).Decode(&status); err != nil {
s.logger.Error(ctx, "Failed to decode availability response", map[string]interface{}{
"error": err.Error(),
"error": err.Error(),
"service": "fusion_brain",
"function": "checkAvailability",
"modelID": s.modelID,
})
return false, fmt.Errorf("decoding response: %w", err)
}
Expand Down

0 comments on commit 19d2ac2

Please sign in to comment.