mirror of
https://github.com/Seldaek/monolog.git
synced 2025-10-21 16:46:11 +02:00
Change 'save' to 'insert' in MongoDBHandler
This commit is contained in:
@@ -45,7 +45,7 @@ class MongoDBHandler extends AbstractProcessingHandler
|
||||
if ($this->mongoCollection instanceof \MongoDB\Collection) {
|
||||
$this->mongoCollection->insertOne($record["formatted"]);
|
||||
} else {
|
||||
$this->mongoCollection->save($record["formatted"]);
|
||||
$this->mongoCollection->insert($record["formatted"]);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user