From 382bbccda79941f6e1d0561b2e346c2617e3ec90 Mon Sep 17 00:00:00 2001 From: John Houser <90853393+john-c-houser@users.noreply.github.com> Date: Thu, 26 Sep 2024 08:16:31 -0700 Subject: [PATCH] Log update response only if debug/update is true --- src/Libilsws.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Libilsws.php b/src/Libilsws.php index e3f3ce4..527c4c5 100644 --- a/src/Libilsws.php +++ b/src/Libilsws.php @@ -2616,7 +2616,7 @@ public function update_phone_list ($phone_list, $token = null, $patron_key = nul $response = $this->send_query($this->base_url . "/user/patron/key/$patron_key", $token, $json, 'PUT', $options); if ( $this->config['debug']['update'] ) { - print_r($response); + error_log('DEBUG_UPDATE ' . json_encode($response, JSON_PRETTY_PRINT), 0); } $return_code = 0;