diff --git a/endpoints/gis.fixphrase.php b/endpoints/gis.fixphrase.php index ee1918a..9e07dd3 100644 --- a/endpoints/gis.fixphrase.php +++ b/endpoints/gis.fixphrase.php @@ -41,6 +41,7 @@ try { } } catch (Exception $ex) { sendJsonResp($ex->getMessage(), "ERROR"); + \Sentry\captureException($ex); } exitWithJson($output); diff --git a/endpoints/logistics.tracking.php b/endpoints/logistics.tracking.php index 0a0ac1c..61a49ff 100644 --- a/endpoints/logistics.tracking.php +++ b/endpoints/logistics.tracking.php @@ -69,6 +69,7 @@ try { "status" => "ERROR", "msg" => $ex->getMessage() ]; + \Sentry\captureException($ex); $memcache->set("logistics.tracking.$code.$carrier", json_encode($output), 60 * 10); exitWithJson(downgradeResponseVersion($output, $revision)); } diff --git a/endpoints/net.contactspam.php b/endpoints/net.contactspam.php index a50b6fe..515ef53 100644 --- a/endpoints/net.contactspam.php +++ b/endpoints/net.contactspam.php @@ -132,7 +132,7 @@ try { } } } catch (Exception $ex) { - + \Sentry\captureException($ex); } // @@ -199,7 +199,7 @@ try { } } } catch (Exception $ex) { - + \Sentry\captureException($ex); } // Check local spammer database diff --git a/endpoints/net.whois.php b/endpoints/net.whois.php index 1c760f5..9b25427 100644 --- a/endpoints/net.whois.php +++ b/endpoints/net.whois.php @@ -60,4 +60,5 @@ try { } catch (Exception $e) { Logger::log("network.whois error: " . $e->getMessage()); sendJsonResp("An unknown error occurred.", "ERROR"); + \Sentry\captureException($ex); } \ No newline at end of file diff --git a/required.php b/required.php index 29fb65e..1202c82 100644 --- a/required.php +++ b/required.php @@ -26,7 +26,7 @@ header("Access-Control-Allow-Origin: *"); // Composer require __DIR__ . '/vendor/autoload.php'; -Sentry\init(['dsn' => 'https://1cb615831d87433c941e1bd7e7df3d0b@bugs.netsyms.net/3']); +\Sentry\init(['dsn' => 'https://1cb615831d87433c941e1bd7e7df3d0b@bugs.netsyms.net/3']); // Settings require __DIR__ . '/env.php';