Skip to content
Snippets Groups Projects
Commit 29368d1c authored by Brice Maron's avatar Brice Maron
Browse files

Add 3 More log writing in files sharing app

parent b975f115
No related branches found
No related tags found
No related merge requests found
......@@ -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";
}
}
......
......@@ -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;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment