store error mails in Mailing Table
This commit is contained in:
1 parent
29a1be5d22
commit
f4b65903f7
3 files changed
+4
-1
No files matched your search
@@ -31,6 +31,7 @@ if (!in_array($token, $validTokens)) {
|
||||
errorMail(
|
||||
"API Login failed",
|
||||
$error,
|
||||
true,
|
||||
);
|
||||
echo $error;
|
||||
exit;
|
||||
|
||||
@@ -65,6 +65,7 @@ function db_connect() {
|
||||
errorMail(
|
||||
"Database Connection failed",
|
||||
$e->getMessage(),
|
||||
false,
|
||||
);
|
||||
redirectToWebsite("https://blackpi.ipv64.net");
|
||||
throw $e;
|
||||
|
||||
@@ -93,7 +93,8 @@ function logging() {
|
||||
} catch (mysqli_sql_exception $e) {
|
||||
errorMail(
|
||||
"Logging failed",
|
||||
$e->getMessage()
|
||||
$e->getMessage(),
|
||||
true,
|
||||
);
|
||||
throw $e;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user