1
0
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:
Will Banfield
2016-01-19 15:54:46 -05:00
parent f656375b86
commit ad37c8e663

View File

@@ -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"]);
} }
} }