mirror of
https://github.com/Seldaek/monolog.git
synced 2025-10-23 09:36:11 +02:00
Merge branch '1.x', clean up close/reset for 2.0, refs #997
This commit is contained in:
@@ -102,7 +102,7 @@ class RollbarHandler extends AbstractProcessingHandler
|
||||
$this->hasRecords = true;
|
||||
}
|
||||
|
||||
public function flush()
|
||||
public function flush(): void
|
||||
{
|
||||
if ($this->hasRecords) {
|
||||
$this->rollbarLogger->flush();
|
||||
@@ -117,4 +117,14 @@ class RollbarHandler extends AbstractProcessingHandler
|
||||
{
|
||||
$this->flush();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function reset()
|
||||
{
|
||||
$this->flush();
|
||||
|
||||
parent::reset();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user