From ddc7c378e9d3ae775cda32ba13e9c3aeca32eeaa Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Tue, 15 Aug 2023 18:02:13 +1200 Subject: [PATCH] ENH Log when making github API requests --- funcs_utils.php | 1 + 1 file changed, 1 insertion(+) diff --git a/funcs_utils.php b/funcs_utils.php index 3cb907f..b02adcd 100644 --- a/funcs_utils.php +++ b/funcs_utils.php @@ -202,6 +202,7 @@ function github_api($url, $data = []) { // silverstripe-themes has a kind of weird redirect only for api requests $url = str_replace('/silverstripe-themes/silverstripe-simple', '/silverstripe/silverstripe-simple', $url); + info("Making curl request to $url"); $token = github_token(); $jsonStr = empty($data) ? '' : json_encode($data, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE); $ch = curl_init($url);