mirror of
https://github.com/unraid/api.git
synced 2026-01-15 05:00:16 -06:00
add: sendCrashInfo to UPC for sentry
This commit is contained in:
@@ -85,11 +85,13 @@ if (empty($remote['apikey']) || empty($var['regFILE']) || empty($remote['usernam
|
||||
$arr['username'] = '';
|
||||
$arr['avatar'] = '';
|
||||
$arr['apikey'] = '';
|
||||
$arr['sendCrashInfo'] = 0;
|
||||
} else {
|
||||
$arr['registered'] = 1;
|
||||
$arr['username'] = $remote['username'];
|
||||
$arr['avatar'] = $remote['avatar'];
|
||||
$arr['apikey'] = $remote['apikey'];
|
||||
$arr['sendCrashInfo'] = $var['sendCrashInfo'] || 'no';
|
||||
}
|
||||
$arr['event'] = 'STATE';
|
||||
$arr['ts'] = time();
|
||||
@@ -2319,6 +2321,7 @@ unraid-launchpad {
|
||||
locale="<?=($_SESSION['locale']) ? $_SESSION['locale'] : 'en_US'?>"
|
||||
locale-messages="<?=rawurlencode(json_encode($upc_translations, JSON_UNESCAPED_SLASHES, JSON_UNESCAPED_UNICODE))?>"
|
||||
reg-wiz-time="<?=($remote['regWizTime']) ? $remote['regWizTime'] : ''?>"
|
||||
send-crash-info="<?=$remote['sendCrashInfo']) ?>"
|
||||
serverdesc="<?=$var['COMMENT']?>"
|
||||
servermodel="<?=$var['SYS_MODEL']?>"
|
||||
serverstate="<?=rawurlencode(json_encode($serverstate, JSON_UNESCAPED_SLASHES))?>"
|
||||
|
||||
Reference in New Issue
Block a user