Skip to content

Commit 814fbdf

Browse files
committed
Removing logs
1 parent b892e8d commit 814fbdf

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

trunk/HDB.php

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -132,41 +132,33 @@ function hejbit_SaveInProgress($NbrRelance = 0){
132132

133133

134134
case "0":
135-
error_log('DB-Exporting-BEGIN');
136135
// Export of the DB
137136
include ('inc/CreateDB.php');
138-
error_log('DB-Exporting-END');
139137
// End of the script before relaunch by cron to avoid timeout
140138
exit();
141139

142140

143141

144142
case "1":
145-
error_log('ZIP-Creation-BEGIN');
146143
// Creation of the Zip
147144
include ('inc/CreateZip.php');
148-
error_log('ZIP-Creation-END');
149145
// End of the script before relaunch by cron to avoid timeout
150146
exit();
151147

152148

153149
case "2":
154-
error_log('Merging-ZIP-BEGIN');
155150
// Merging the files to be backed up
156151
include ('inc/MergeZip.php');
157-
error_log('Merging-ZIP-END');
158152
// End of the script before relaunch by cron to avoid timeout
159153
exit();
160154

161155

162156
case "3":
163-
error_log('Sending-Chunk-BEGIN');
164157
$nc_status = hejbit_save_to_nextcloud::is_NextCloud_good();
165158
$hejbit_folder = hejbit_save_to_nextcloud::is_Folder_hejbit();
166159

167160

168-
error_log('Nextcloud status: ' . ($nc_status ? 'active' : 'inactive'));
169-
error_log('Hejbit folder status: ' . ($hejbit_folder ? 'exists' : 'does not exist'));
161+
170162

171163
// If the connection with NextCloud is correct and folder is hejbit
172164
if($nc_status && $hejbit_folder){
@@ -239,11 +231,9 @@ function hejbit_SaveInProgress($NbrRelance = 0){
239231
$this->sendInfo("ERROR",$info);
240232

241233
};
242-
error_log('Sending-Chunk-END');
243234
exit();
244235

245236
case "4":
246-
error_log('MergingChunk-BEGIN');
247237
// If the connection with NextCloud is correct
248238
if(hejbit_save_to_nextcloud::is_NextCloud_good()){
249239

@@ -276,7 +266,6 @@ function hejbit_SaveInProgress($NbrRelance = 0){
276266

277267

278268
};
279-
error_log('MergingChunk-END');
280269
exit();
281270

282271
};
@@ -399,7 +388,6 @@ static function is_NextCloud_good(){
399388
static function is_Folder_hejbit(){
400389

401390
$url = get_option('url_dlwcloud').'/remote.php/dav/files/'. get_option("login_dlwcloud").get_option("folder_dlwcloud");
402-
error_log('$url: ' . $url);
403391
$headers = array(
404392
'Content-Type' => 'application/xml',
405393
'Depth' => '0', // Important: this limits to only the root folder
@@ -434,13 +422,11 @@ static function is_Folder_hejbit(){
434422
}
435423

436424
static function check_ethswarm_node_status($xml_response) {
437-
error_log('Full XML response: ' . print_r($xml_response, true));
438425
// Extract the body from the WordPress response array
439426
$body = wp_remote_retrieve_body($xml_response);
440427

441428
// Check if we got a valid body
442429
if (empty($body)) {
443-
error_log('Empty response body from Nextcloud');
444430
return false;
445431
}
446432

@@ -452,7 +438,6 @@ static function check_ethswarm_node_status($xml_response) {
452438
if ($xml === false) {
453439
$errors = libxml_get_errors();
454440
foreach ($errors as $error) {
455-
error_log('XML parsing error: ' . $error->message);
456441
}
457442
libxml_clear_errors();
458443
return false;

0 commit comments

Comments
 (0)