Add Check for httpcode 500
Print out the url with httpcode 500 in red textcolor.
Dieser Commit ist enthalten in:
Ursprung
546b8c8b4c
Commit
17c68ba488
@ -42,7 +42,13 @@ class CacheWarmer extends BaseController
|
||||
if(curl_error($oCurl)) {
|
||||
$sMessage .= '<span style="color: orange;">ERROR '.$httpStatus.': ' . curl_error($oCurl) . '</span><br>';
|
||||
} else {
|
||||
$sMessage .= '<span style="color: green;">OK '.$httpStatus.': ' . $sUrl . '</span><br>';
|
||||
if(trim($httpStatus) == '500')
|
||||
{
|
||||
$sMessage .= '<span style="color: red;">ERROR <b>'.$httpStatus.'</b>: ' . $sUrl. '</span><br>';
|
||||
}
|
||||
else{
|
||||
$sMessage .= '<span style="color: green;">OK '.$httpStatus.': ' . $sUrl . '</span><br>';
|
||||
}
|
||||
}
|
||||
curl_close($oCurl);
|
||||
}
|
||||
|
Laden…
x
In neuem Issue referenzieren
Einen Benutzer sperren