Skip to content

Commit 79eddac

Browse files
committed
delete debugs error
1 parent dd988ef commit 79eddac

File tree

2 files changed

+0
-24
lines changed

2 files changed

+0
-24
lines changed

plugins/drop_folder/admin/DropFolderConfigureAction.php

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,6 @@ public function doAction(Zend_Controller_Action $action)
3535
$partnerId = $this->_getParam('partnerId');
3636
$dropFolderType = $this->_getParam('type');
3737
$postData = $request->getPost();
38-
39-
// DEBUG: Log what's being posted
40-
error_log("DROP FOLDER ACTION DEBUG: POST data fileProcessingGracePeriod = " .
41-
(isset($postData['fileProcessingGracePeriod']) ? $postData['fileProcessingGracePeriod'] : 'NOT SET'));
42-
4338
$dropFolderForm = $this->getDropFolderConfigure($dropFolderType, $partnerId, $dropFolderType);
4439
$action->view->formValid = $this->processForm($dropFolderForm, $postData, $partnerId, $dropFolderId);
4540
if(!is_null($dropFolderId))
@@ -110,21 +105,13 @@ private function processForm(Form_DropFolderConfigure $form, $formData, $partner
110105
$dropFolder = $form->getObject("Kaltura_Client_DropFolder_Type_DropFolder", $formData, false, true);
111106
$this->validateConversionProfileId($dropFolder->conversionProfileId, $partnerId);
112107

113-
// DEBUG: Log what's on the object before API call
114-
error_log("DROP FOLDER ACTION DEBUG: After getObject, fileProcessingGracePeriod = " .
115-
var_export($dropFolder->fileProcessingGracePeriod, true));
116-
117108
unset($dropFolder->id);
118109

119110
if($dropFolder->fileHandlerType === Kaltura_Client_DropFolder_Enum_DropFolderFileHandlerType::CONTENT)
120111
$dropFolder->fileNamePatterns = '*';
121112
if (is_null($dropFolderId)) {
122113
$dropFolder->status = Kaltura_Client_DropFolder_Enum_DropFolderStatus::ENABLED;
123114

124-
// DEBUG: Log what's being sent to API
125-
error_log("DROP FOLDER ACTION DEBUG: About to call API add with fileProcessingGracePeriod = " .
126-
var_export($dropFolder->fileProcessingGracePeriod, true));
127-
128115
$responseDropFolder = $dropFolderPluginClient->dropFolder->add($dropFolder);
129116
}
130117
else {

plugins/drop_folder/lib/api/types/KalturaDropFolder.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -222,32 +222,22 @@ public function toObject($dbObject = null, $skip = array())
222222
$dbObject = new DropFolder();
223223
$this->trimStringProperties(array ('path'));
224224

225-
// DEBUG: Log all property values to see what's coming in
226-
KalturaLog::debug("DROP FOLDER TOOBJECT DEBUG: === ENTRY POINT === Class: " . get_class($this));
227-
KalturaLog::debug("DROP FOLDER TOOBJECT DEBUG: fileSizeCheckInterval = " . var_export($this->fileSizeCheckInterval, true));
228-
KalturaLog::debug("DROP FOLDER TOOBJECT DEBUG: fileProcessingGracePeriod = " . var_export($this->fileProcessingGracePeriod, true));
229-
KalturaLog::debug("DROP FOLDER TOOBJECT DEBUG: autoFileDeleteDays = " . var_export($this->autoFileDeleteDays, true));
230-
231225
// Set fileProcessingGracePeriod BEFORE calling parent to preserve user value
232226
// (parent may not recognize this property due to reflection cache)
233227
$fileProcessingGracePeriodValue = $this->fileProcessingGracePeriod;
234-
KalturaLog::debug("DROP FOLDER TOOBJECT DEBUG: fileProcessingGracePeriod stored in variable = " . var_export($fileProcessingGracePeriodValue, true) . " (type: " . gettype($fileProcessingGracePeriodValue) . ")");
235228

236229
// Convert to integer if it's a numeric string
237230
if (is_string($fileProcessingGracePeriodValue) && is_numeric($fileProcessingGracePeriodValue)) {
238231
$fileProcessingGracePeriodValue = (int)$fileProcessingGracePeriodValue;
239-
KalturaLog::debug("DROP FOLDER TOOBJECT DEBUG: Converted string to int: " . $fileProcessingGracePeriodValue);
240232
}
241233

242234
// Set default if empty
243235
if (is_null($fileProcessingGracePeriodValue) || $fileProcessingGracePeriodValue === '' || $fileProcessingGracePeriodValue === 0) {
244236
$fileProcessingGracePeriodValue = DropFolder::FILE_PROCESSING_GRACE_PERIOD_DEFAULT_VALUE;
245-
KalturaLog::debug("DROP FOLDER TOOBJECT DEBUG: Value was empty, set to default: " . $fileProcessingGracePeriodValue);
246237
}
247238

248239
// Validate maximum value
249240
if ($fileProcessingGracePeriodValue > DropFolder::FILE_PROCESSING_GRACE_PERIOD_MAX_VALUE) {
250-
KalturaLog::debug("DROP FOLDER TOOBJECT DEBUG: Value " . $fileProcessingGracePeriodValue . " exceeds maximum " . DropFolder::FILE_PROCESSING_GRACE_PERIOD_MAX_VALUE . ", throwing exception");
251241
throw new KalturaAPIException(KalturaErrors::INVALID_FIELD_VALUE, 'fileProcessingGracePeriod');
252242
}
253243

@@ -256,7 +246,6 @@ public function toObject($dbObject = null, $skip = array())
256246
// Explicitly set fileProcessingGracePeriod to ensure it's saved
257247
if (!is_null($fileProcessingGracePeriodValue) && !in_array('fileProcessingGracePeriod', $skip))
258248
{
259-
KalturaLog::debug("DROP FOLDER TOOBJECT DEBUG: Calling setFileProcessingGracePeriod with " . $fileProcessingGracePeriodValue);
260249
$dbObject->setFileProcessingGracePeriod($fileProcessingGracePeriodValue);
261250
}
262251

0 commit comments

Comments
 (0)