зеркало из https://github.com/nextcloud/server.git
Add 3 More log writing in files sharing app
This commit is contained in:
Родитель
b975f11514
Коммит
29368d1c58
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче