Skip to content

Commit 3601db8

Browse files
committed
fix: more debug logs to figure this out
1 parent 142d083 commit 3601db8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

db-connector.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13340,6 +13340,13 @@ func SetDatastoreKeyBulk(ctx context.Context, allKeys []CacheKeyData) ([]Datasto
1334013340
if err == nil {
1334113341
if debug {
1334213342
log.Printf("[DEBUG] There was no error sending bulk request to Opensearch for cache key")
13343+
// print body
13344+
body, err := ioutil.ReadAll(res.Body)
13345+
if err != nil {
13346+
log.Printf("[ERROR] Error reading response body: %s", err)
13347+
} else {
13348+
log.Printf("[DEBUG] Response body: %s", string(body))
13349+
}
1334313350
}
1334413351
}
1334513352

0 commit comments

Comments
 (0)