Improve error handling in ShutdownHandler by logging warnings for cleanup failures
This commit is contained in:
parent
487eb70b0b
commit
ead20f7924
2 changed files with 3 additions and 3 deletions
|
@ -68,16 +68,15 @@
|
|||
if(count(self::$cleanupPaths) > 0)
|
||||
{
|
||||
$filesystem = new Filesystem();
|
||||
|
||||
foreach(self::$cleanupPaths as $path)
|
||||
{
|
||||
try
|
||||
{
|
||||
//$filesystem->remove($path);
|
||||
$filesystem->remove($path);
|
||||
}
|
||||
catch(Exception $e)
|
||||
{
|
||||
// ignore
|
||||
Console::outWarning('An error occurred while cleaning up temporary path "' . $path . '", ' . $e->getMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue