Skip to content

Commit 47662f4

Browse files
committed
better log
1 parent 85652e5 commit 47662f4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/tracker/tracker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ func ProcessJob(cfg *config.Config, job *slurm.Job, stateDriver *state.Driver, p
223223
return err
224224
}
225225
if resp.StatusCode() >= 400 {
226-
return fmt.Errorf("failed to create usage event: %s", resp.Status())
226+
return fmt.Errorf("failed to create usage event: %s, body: %s", resp.Status(), string(resp.Body))
227227
}
228228

229229
// Update state only after successful API call

0 commit comments

Comments
 (0)