summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/ajax
diff options
context:
space:
mode:
authorBrice Maron <brice@bmaron.net>2011-10-18 21:29:48 +0200
committerBrice Maron <brice@bmaron.net>2011-10-18 21:30:08 +0200
commit29368d1c58d1c52420f46cf41a1b975a23751814 (patch)
tree15f3b209e49e0e428e79c80d84eeb9b09e7233f0 /apps/files_sharing/ajax
parentb975f1151451785f8350a12bf63d8fd63f0d04b4 (diff)
downloadnextcloud-server-29368d1c58d1c52420f46cf41a1b975a23751814.tar.gz
nextcloud-server-29368d1c58d1c52420f46cf41a1b975a23751814.zip
Add 3 More log writing in files sharing app
Diffstat (limited to 'apps/files_sharing/ajax')
-rw-r--r--apps/files_sharing/ajax/share.php2
1 files changed, 2 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";
}
}