mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
Tweak some things about the webhook processor.
These are already live, (kinda) but i'm putting them here mainly so we can test the auto-update again
This commit is contained in:
committed by
GitHub
parent
07c1c4aeed
commit
ca7ca712e8
@@ -15,10 +15,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
//CONFIG START (all defaults are random examples, do change them)
|
//CONFIGS ARE IN SECRET.PHP, THESE ARE JUST DEFAULTS!
|
||||||
//Use single quotes for config options that are strings.
|
|
||||||
|
|
||||||
//These are all default settings that are described in secret.php
|
|
||||||
$hookSecret = '08ajh0qj93209qj90jfq932j32r';
|
$hookSecret = '08ajh0qj93209qj90jfq932j32r';
|
||||||
$apiKey = '209ab8d879c0f987d06a09b9d879c0f987d06a09b9d8787d0a089c';
|
$apiKey = '209ab8d879c0f987d06a09b9d879c0f987d06a09b9d8787d0a089c';
|
||||||
$repoOwnerAndName = "tgstation/tgstation";
|
$repoOwnerAndName = "tgstation/tgstation";
|
||||||
@@ -43,6 +41,7 @@ set_error_handler(function($severity, $message, $file, $line) {
|
|||||||
set_exception_handler(function($e) {
|
set_exception_handler(function($e) {
|
||||||
header('HTTP/1.1 500 Internal Server Error');
|
header('HTTP/1.1 500 Internal Server Error');
|
||||||
echo "Error on line {$e->getLine()}: " . htmlSpecialChars($e->getMessage());
|
echo "Error on line {$e->getLine()}: " . htmlSpecialChars($e->getMessage());
|
||||||
|
file_put_contents('htwebhookerror.log', "Error on line {$e->getLine()}: " . $e->getMessage(), FILE_APPEND);
|
||||||
die();
|
die();
|
||||||
});
|
});
|
||||||
$rawPost = NULL;
|
$rawPost = NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user