mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-11 05:47:28 -08:00
Change image unlink error log to info from error
This commit is contained in:
parent
7deab0f53b
commit
de16fee00a
|
@ -209,7 +209,7 @@ class AssetModelsController extends Controller
|
||||||
try {
|
try {
|
||||||
unlink(app('models_upload_path').$old_image);
|
unlink(app('models_upload_path').$old_image);
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
\Log::error($e);
|
\Log::info($e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -246,7 +246,7 @@ class AssetModelsController extends Controller
|
||||||
try {
|
try {
|
||||||
unlink(public_path().'/uploads/models/'.$model->image);
|
unlink(public_path().'/uploads/models/'.$model->image);
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
\Log::error($e);
|
\Log::info($e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -326,7 +326,7 @@ class AssetsController extends Controller
|
||||||
unlink(public_path().'/uploads/assets/'.$asset->image);
|
unlink(public_path().'/uploads/assets/'.$asset->image);
|
||||||
$asset->image = '';
|
$asset->image = '';
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
\Log::error($e);
|
\Log::info($e);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -179,7 +179,7 @@ class CategoriesController extends Controller
|
||||||
try {
|
try {
|
||||||
unlink(app('categories_upload_path').$old_image);
|
unlink(app('categories_upload_path').$old_image);
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
\Log::error($e);
|
\Log::info($e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -148,7 +148,7 @@ final class CompaniesController extends Controller
|
||||||
try {
|
try {
|
||||||
unlink(app('companies_upload_path').$old_image);
|
unlink(app('companies_upload_path').$old_image);
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
\Log::error($e);
|
\Log::info($e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -191,7 +191,7 @@ class DepartmentsController extends Controller
|
||||||
try {
|
try {
|
||||||
unlink(app('departments_upload_path').$old_image);
|
unlink(app('departments_upload_path').$old_image);
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
\Log::error($e);
|
\Log::info($e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -200,7 +200,7 @@ class LocationsController extends Controller
|
||||||
try {
|
try {
|
||||||
unlink(app('locations_upload_path').$old_image);
|
unlink(app('locations_upload_path').$old_image);
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
\Log::error($e);
|
\Log::info($e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -170,7 +170,7 @@ class ManufacturersController extends Controller
|
||||||
try {
|
try {
|
||||||
unlink(app('manufacturers_upload_path').$old_image);
|
unlink(app('manufacturers_upload_path').$old_image);
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
\Log::error($e);
|
\Log::info($e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -207,7 +207,7 @@ class ManufacturersController extends Controller
|
||||||
try {
|
try {
|
||||||
unlink(public_path().'/uploads/manufacturers/'.$manufacturer->image);
|
unlink(public_path().'/uploads/manufacturers/'.$manufacturer->image);
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
\Log::error($e);
|
\Log::info($e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -174,7 +174,7 @@ class SuppliersController extends Controller
|
||||||
try {
|
try {
|
||||||
unlink(app('suppliers_upload_path').$old_image);
|
unlink(app('suppliers_upload_path').$old_image);
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
\Log::error($e);
|
\Log::info($e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue