1
0
Fork 0
mirror of synced 2024-06-02 19:04:49 +12:00

Fixed antivirus health check

This commit is contained in:
eldadfux 2019-08-20 18:43:01 +03:00
parent 2ba91a9b6c
commit 0161a8d413
2 changed files with 7 additions and 6 deletions

View file

@ -5,6 +5,7 @@ global $utopia, $request, $response, $register, $project;
use Utopia\Exception;
use Storage\Devices\Local;
use Storage\Storage;
use Appwrite\ClamAV\Network;
$utopia->get('/v1/health')
->desc('Check DB Health')
@ -141,7 +142,7 @@ $utopia->get('/v1/health/storage/anti-virus')
->action(
function() use ($response)
{
$antiVirus = new \ClamAV\Network('clamav', 3310);
$antiVirus = new Network('clamav', 3310);
$response->json([
'status' => (@$antiVirus->ping()) ? 'online' : 'offline',

View file

@ -8,12 +8,12 @@
* Rick Cook, The Wizardry Compiled
*/
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
/*
// ini_set('display_errors', 1);
// ini_set('display_startup_errors', 1);
// error_reporting(E_ALL);
error_reporting(0);
ini_set('display_errors', 0);*/
ini_set('display_errors', 0);
$path = (isset($_GET['q'])) ? explode('/', $_GET['q']) : [];
$domain = (isset($_SERVER['HTTP_HOST'])) ? $_SERVER['HTTP_HOST'] : '';