mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-08 06:06:40 +02:00
Merge pull request #790 from fprochazka/1.x-php7-throwable
Catch Throwable
This commit is contained in:
@@ -169,6 +169,8 @@ abstract class AbstractHandler implements HandlerInterface
|
|||||||
$this->close();
|
$this->close();
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
// do nothing
|
// do nothing
|
||||||
|
} catch (\Throwable $e) {
|
||||||
|
// do nothing
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -35,6 +35,8 @@ class WhatFailureGroupHandler extends GroupHandler
|
|||||||
$handler->handle($record);
|
$handler->handle($record);
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
// What failure?
|
// What failure?
|
||||||
|
} catch (\Throwable $e) {
|
||||||
|
// What failure?
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -51,6 +53,8 @@ class WhatFailureGroupHandler extends GroupHandler
|
|||||||
$handler->handleBatch($records);
|
$handler->handleBatch($records);
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
// What failure?
|
// What failure?
|
||||||
|
} catch (\Throwable $e) {
|
||||||
|
// What failure?
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user