Skip to content

Commit 333aa73

Browse files
committed
Remove exception logging for connection error; closes pterodactyl#40
1 parent 873f39d commit 333aa73

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

app/Http/Controllers/Server/AjaxController.php

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -81,24 +81,15 @@ public function getStatus(Request $request, $uuid)
8181
$client = Node::guzzleRequest($server->node);
8282

8383
try {
84-
8584
$res = $client->request('GET', '/server', [
8685
'headers' => Server::getGuzzleHeaders($uuid)
8786
]);
88-
8987
if($res->getStatusCode() === 200) {
9088
return response()->json(json_decode($res->getBody()));
91-
} else {
92-
return response()->json([]);
9389
}
94-
9590
} catch (RequestException $e) {
96-
Log::notice('An exception was raised while attempting to contact a daemon instance to get server status information.', [
97-
'exception' => $e->getMessage(),
98-
'path' => $request->path()
99-
]);
91+
//
10092
}
101-
10293
return response()->json([]);
10394
}
10495

0 commit comments

Comments
 (0)