mirror of
https://github.com/Seldaek/monolog.git
synced 2025-10-22 17:16:18 +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) {
|
if ($this->mongoCollection instanceof \MongoDB\Collection) {
|
||||||
$this->mongoCollection->insertOne($record["formatted"]);
|
$this->mongoCollection->insertOne($record["formatted"]);
|
||||||
} else {
|
} else {
|
||||||
$this->mongoCollection->save($record["formatted"]);
|
$this->mongoCollection->insert($record["formatted"]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user