Merge pull request #13614 from owncloud/oc_image_log_fix
remove insane debug-log from OC_Image
This commit is contained in:
commit
cb8440c55a
|
@ -467,7 +467,6 @@ class OC_Image {
|
||||||
public function loadFromFile($imagePath = false) {
|
public function loadFromFile($imagePath = false) {
|
||||||
// exif_imagetype throws "read error!" if file is less than 12 byte
|
// exif_imagetype throws "read error!" if file is less than 12 byte
|
||||||
if (!@is_file($imagePath) || !file_exists($imagePath) || filesize($imagePath) < 12 || !is_readable($imagePath)) {
|
if (!@is_file($imagePath) || !file_exists($imagePath) || filesize($imagePath) < 12 || !is_readable($imagePath)) {
|
||||||
$this->logger->debug('OC_Image->loadFromFile, could not load: ' . (string)urlencode($imagePath), array('app' => 'core'));
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
$iType = exif_imagetype($imagePath);
|
$iType = exif_imagetype($imagePath);
|
||||||
|
|
Loading…
Reference in New Issue