1
0
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:
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) {
$this->mongoCollection->insertOne($record["formatted"]);
} else {
$this->mongoCollection->save($record["formatted"]);
$this->mongoCollection->insert($record["formatted"]);
}
}