diff options
author | Brice Maron <brice@bmaron.net> | 2011-10-18 21:29:48 +0200 |
---|---|---|
committer | Brice Maron <brice@bmaron.net> | 2011-10-18 21:30:08 +0200 |
commit | 29368d1c58d1c52420f46cf41a1b975a23751814 (patch) | |
tree | 15f3b209e49e0e428e79c80d84eeb9b09e7233f0 /apps | |
parent | b975f1151451785f8350a12bf63d8fd63f0d04b4 (diff) | |
download | nextcloud-server-29368d1c58d1c52420f46cf41a1b975a23751814.tar.gz nextcloud-server-29368d1c58d1c52420f46cf41a1b975a23751814.zip |
Add 3 More log writing in files sharing app
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/ajax/share.php | 2 | ||||
-rw-r--r-- | apps/files_sharing/lib_share.php | 1 |
2 files changed, 3 insertions, 0 deletions
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; } } |