Skip to content

Commit d89098a

Browse files
committed
Minor
1 parent 291be1e commit d89098a

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

internal/lb/common.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,23 @@ func getTargetStatus(targetUrl string) (registration.StatusInformation, error) {
1414
path, _ := url.JoinPath(targetUrl, "/status")
1515
resp, err := http.Get(path)
1616
if err != nil {
17-
log.Fatalf("Invocation to get status failed: %v", err)
17+
log.Printf("Invocation to get status failed: %v", err)
1818
return registration.StatusInformation{}, err
1919
}
2020
defer resp.Body.Close()
2121

2222
// Read the response body
2323
body, err := io.ReadAll(resp.Body)
2424
if err != nil {
25-
log.Fatalf("Error reading response body: %v", err)
25+
log.Printf("Error reading response body: %v", err)
2626
return registration.StatusInformation{}, err
2727
}
2828

2929
// Check the status code
3030
if resp.StatusCode == http.StatusOK {
3131
var statusInfo registration.StatusInformation
3232
if err := json.Unmarshal(body, &statusInfo); err != nil {
33-
log.Fatalf("Error decoding JSON: %v", err)
33+
log.Printf("Error decoding JSON: %v", err)
3434
return registration.StatusInformation{}, errors.New("could not get status information")
3535
}
3636
return statusInfo, nil

internal/workflow/workflow.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,6 @@ func (wflow *Workflow) Invoke(r *Request) error {
505505

506506
input, found = dataMap[previousTask]
507507
if !found {
508-
log.Printf("Input not found in dataMap for previousTask %s", previousTask)
509508
input, err = RetrievePartialData(requestId, previousTask)
510509
if err != nil {
511510
return fmt.Errorf("Could not retrieve partial data: %v", err)

0 commit comments

Comments
 (0)