Skip to content

Commit

Permalink
remove verbose parameter logs
Browse files Browse the repository at this point in the history
  • Loading branch information
bennet0496 committed Mar 20, 2024
1 parent 7e24e22 commit 6470072
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function add_preferences(array $param): array
{
$prefs = $this->rcmail->user->get_prefs();

self::log($prefs);
// self::log($prefs);

$server = $this->rcmail->config->get(__("server"));
$blocks = $param["blocks"];
Expand Down Expand Up @@ -74,7 +74,7 @@ public function add_preferences(array $param): array

$server_format_tokens = explode(":", $this->rcmail->config->get(__("folder_layout"), "flat"));

self::log($server_format_tokens);
// self::log($server_format_tokens);

$server_format = match ($server_format_tokens[0]) {
"flat" => $this->gettext("folder_layout_flat"),
Expand Down Expand Up @@ -196,7 +196,7 @@ private function save_preferences(array $param) : array
}
}

self::log($param);
// self::log($param);

return $param;
}
Expand Down Expand Up @@ -416,7 +416,7 @@ public function upload(array $data): array
$folder_suffix = $this->resolve_destination_folder($folder_uri, $data["path"], $username, $password);
$folder .= "/".$folder_suffix;
$folder_uri .= "/".$folder_suffix;
self::log($folder_uri);
// self::log($folder_uri);

//get unique filename
$filename = $this->unique_filename($folder_uri, $data["name"], $username, $password);
Expand Down Expand Up @@ -496,11 +496,11 @@ public function upload(array $data): array
}
}
$form_params["password"] = $share_password;
self::log($share_password);
// self::log($share_password);
}

try {
self::log($form_params);
// self::log($form_params);
$res = $this->client->post($server . "/ocs/v2.php/apps/files_sharing/api/v1/shares", [
"headers" => [
"OCS-APIRequest" => "true"
Expand All @@ -515,7 +515,7 @@ public function upload(array $data): array
]);

$body = $res->getBody()->getContents();
self::log($form_params);
// self::log($form_params);
if ($res->getStatusCode() == 200) { //upload successful
$ocs = new SimpleXMLElement($body);
//inform client for insert to body
Expand Down

0 comments on commit 6470072

Please sign in to comment.