Removed debugging in VodiaApi

This commit is contained in:
Frank Schubert
2025-07-07 14:25:01 +02:00
parent f166f746c5
commit 086f1b5969

View File

@@ -45,13 +45,13 @@ class Vodia_Api {
//"header" => $headers,
]];
$this->log->debug(__METHOD__.": authenticating to $url for domain $domain, user $this->admin_user");
$this->log->debug(__METHOD__.": ".print_r($ctx_options, true));
//$this->log->debug(__METHOD__.": authenticating to $url for domain $domain, user $this->admin_user");
//$this->log->debug(__METHOD__.": ".print_r($ctx_options, true));
$ctx = stream_context_create($ctx_options);
$output = file_get_contents($url, false, $ctx);
$this->log->debug(__METHOD__.": auth output: $output");
//$this->log->debug(__METHOD__.": auth output: $output");
$m = [];
if(preg_match('/^"([^"]+)"$/', $output, $m)) {
@@ -93,7 +93,7 @@ class Vodia_Api {
$ctx = stream_context_create($ctx_options);
$output = file_get_contents($url, false, $ctx);
$this->log->debug(__METHOD__.": output: $output");
//$this->log->debug(__METHOD__.": output: $output");
return true;
}
@@ -130,7 +130,7 @@ class Vodia_Api {
$ctx = stream_context_create($ctx_options);
$output = file_get_contents($url, false, $ctx);
$this->log->debug(__METHOD__.": output: $output");
//$this->log->debug(__METHOD__.": output: $output");
$user_settings = json_decode($output, true);