Switched back down to debug level

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2021-10-06 12:38:21 -07:00
parent f306401e7e
commit ccd430ce07
2 changed files with 7 additions and 8 deletions

View file

@ -45,8 +45,8 @@ class LicenseFilesController extends Controller
// Check for SVG and sanitize it
if ($extension == 'svg') {
\Log::error('This is an SVG');
\Log::error($file_name);
\Log::debug('This is an SVG');
\Log::debug($file_name);
$sanitizer = new Sanitizer();
$dirtySVG = file_get_contents($file->getRealPath());
@ -55,7 +55,7 @@ class LicenseFilesController extends Controller
try {
Storage::put('private_uploads/licenses/'.$file_name, $cleanSVG);
} catch (\Exception $e) {
\Log::error('Upload no workie :( ');
\Log::debug('Upload no workie :( ');
\Log::debug($e);
}
@ -68,7 +68,6 @@ class LicenseFilesController extends Controller
}
\Log::error('yay!');
return redirect()->route('licenses.show', $license->id)->with('success', trans('admin/licenses/message.upload.success'));
}

View file

@ -47,8 +47,8 @@ class UserFilesController extends Controller
// Check for SVG and sanitize it
if ($extension == 'svg') {
\Log::error('This is an SVG');
\Log::error($file_name);
\Log::debug('This is an SVG');
\Log::debug($file_name);
$sanitizer = new Sanitizer();
$dirtySVG = file_get_contents($file->getRealPath());
@ -57,7 +57,7 @@ class UserFilesController extends Controller
try {
Storage::put('private_uploads/users/'.$file_name, $cleanSVG);
} catch (\Exception $e) {
\Log::error('Upload no workie :( ');
\Log::debug('Upload no workie :( ');
\Log::debug($e);
}