src/AppserverIo/Server/Servers/MultiThreadedServer.php 1 location
|
@@ 470-478 (lines=9) @@
|
467 |
|
* |
468 |
|
* @return void |
469 |
|
*/ |
470 |
|
public function shutdown() |
471 |
|
{ |
472 |
|
// check if there was a fatal error caused shutdown |
473 |
|
$lastError = error_get_last(); |
474 |
|
if ($lastError['type'] === E_ERROR || $lastError['type'] === E_USER_ERROR) { |
475 |
|
// log error |
476 |
|
$this->getServerContext()->getLogger()->error($lastError['message']); |
477 |
|
} |
478 |
|
} |
479 |
|
|
480 |
|
/** |
481 |
|
* Writes the passed exception stack trace to the system logger. |
src/AppserverIo/Server/Workers/ThreadWorker.php 1 location
|
@@ 279-288 (lines=10) @@
|
276 |
|
* |
277 |
|
* @return void |
278 |
|
*/ |
279 |
|
public function shutdown() |
280 |
|
{ |
281 |
|
// check if there was a fatal error caused shutdown |
282 |
|
$lastError = error_get_last(); |
283 |
|
if ($lastError['type'] === E_ERROR || $lastError['type'] === E_USER_ERROR) { |
284 |
|
// log error |
285 |
|
$this->getServerContext()->getLogger()->error($lastError['message']); |
286 |
|
} |
287 |
|
$this->shouldRestart = true; |
288 |
|
} |
289 |
|
|
290 |
|
/** |
291 |
|
* Return's if worker should be restarted by server |