From 29368d1c58d1c52420f46cf41a1b975a23751814 Mon Sep 17 00:00:00 2001 From: Brice Maron Date: Tue, 18 Oct 2011 21:29:48 +0200 Subject: [PATCH] Add 3 More log writing in files sharing app --- apps/files_sharing/ajax/share.php | 2 ++ apps/files_sharing/lib_share.php | 1 + 2 files changed, 3 insertions(+) diff --git a/apps/files_sharing/ajax/share.php b/apps/files_sharing/ajax/share.php index 6a2b45b3a7d..d1f50994317 100644 --- a/apps/files_sharing/ajax/share.php +++ b/apps/files_sharing/ajax/share.php @@ -15,6 +15,7 @@ foreach ($sources as $source) { $source = $userDirectory.$source; // If the file doesn't exist, it may be shared with the current user } else if (!$source = OC_Share::getSource($userDirectory.$source)) { + OC_Log::write('files_sharing',"Shared file doesn't exists :".$source,OC_Log::ERROR); echo "false"; } try { @@ -23,6 +24,7 @@ foreach ($sources as $source) { echo $shared->getToken(); } } catch (Exception $exception) { + OC_Log::write('files_sharing',"Unexpected Error : ".$exception->getMessage(),OC_Log::ERROR); echo "false"; } } diff --git a/apps/files_sharing/lib_share.php b/apps/files_sharing/lib_share.php index 0f1ddfee32f..cde33fd1dc5 100644 --- a/apps/files_sharing/lib_share.php +++ b/apps/files_sharing/lib_share.php @@ -282,6 +282,7 @@ class OC_Share { return $result[0]['permissions']; } } else { + OC_Log::write('files_sharing',"Not existing parent folder : ".$target,OC_Log::ERROR); return false; } }