From 2ef6b931170527d108252d1b0401ba2fda79a508 Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Thu, 23 Feb 2017 08:59:56 +0000 Subject: [PATCH] Remove logging --- app/Http/Controllers/MicropubClientController.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/Http/Controllers/MicropubClientController.php b/app/Http/Controllers/MicropubClientController.php index dacfc91a..25336aa1 100644 --- a/app/Http/Controllers/MicropubClientController.php +++ b/app/Http/Controllers/MicropubClientController.php @@ -54,7 +54,6 @@ class MicropubClientController extends Controller */ public function store(Request $request) { - Log::info('posting new note'); $domain = $request->session()->get('me'); $token = $request->session()->get('token'); @@ -63,14 +62,12 @@ class MicropubClientController extends Controller $this->indieClient ); if (! $micropubEndpoint) { - Log::error('no known endpoint to post to'); return redirect(route('micropub-client'))->withErrors('Unable to determine micropub API endpoint', 'endpoint'); } $response = $this->postNoteRequest($request, $micropubEndpoint, $token); if ($response->getStatusCode() == 201) { - Log::info('redirecting to note'); $location = $response->getHeader('Location'); if (is_array($location)) { return redirect($location[0]); @@ -78,7 +75,7 @@ class MicropubClientController extends Controller return redirect($location); } - Log::error('note not created'); + return redirect(route('micropub-client'))->withErrors('Endpoint didn’t create the note.', 'endpoint'); }