Skip to content

Commit

Permalink
Switched back down to debug level
Browse files Browse the repository at this point in the history
Signed-off-by: snipe <snipe@snipe.net>
  • Loading branch information
snipe committed Oct 6, 2021
1 parent f306401 commit ccd430c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
9 changes: 4 additions & 5 deletions app/Http/Controllers/Licenses/LicenseFilesController.php
Expand Up @@ -45,8 +45,8 @@ public function store(AssetFileRequest $request, $licenseId = null)

// 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());
Expand All @@ -55,7 +55,7 @@ public function store(AssetFileRequest $request, $licenseId = null)
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);
}

Expand All @@ -67,8 +67,7 @@ public function store(AssetFileRequest $request, $licenseId = null)
$license->logUpload($file_name, e($request->input('notes')));
}


\Log::error('yay!');

return redirect()->route('licenses.show', $license->id)->with('success', trans('admin/licenses/message.upload.success'));

}
Expand Down
6 changes: 3 additions & 3 deletions app/Http/Controllers/Users/UserFilesController.php
Expand Up @@ -47,8 +47,8 @@ public function store(AssetFileRequest $request, $userId = null)

// 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());
Expand All @@ -57,7 +57,7 @@ public function store(AssetFileRequest $request, $userId = null)
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);
}

Expand Down

0 comments on commit ccd430c

Please sign in to comment.