[
https://issues.apache.org/jira/browse/LOG4PHP-219?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
VladimĂr Gorej updated LOG4PHP-219:
-----------------------------------
Attachment: mongo_tests.patch
Hi Ivan,
Attached patch, solving issues you describe. Let me know If everything is OK.
Have a nice weekend.
> Problems with the mongodb appender
> ----------------------------------
>
> Key: LOG4PHP-219
> URL: https://issues.apache.org/jira/browse/LOG4PHP-219
> Project: Log4php
> Issue Type: Bug
> Affects Versions: 2.3.0
> Environment: php 5.5. + mongodb driver 1.4.5
> Reporter: Ivan Habunek
> Attachments: mongo_tests.patch
>
>
> The mongodb appender throws warnings when used with a newer mongodb driver.
> This breaks tests.
> 1. On instantiating the MongoClient i get: "The 'timeout' option is
> deprecated. Please use 'connectTimeoutMS' instead"
> Line:
> https://github.com/apache/logging-log4php/blob/develop/src/main/php/appenders/LoggerAppenderMongoDB.php#L274
> 2. When creating a capped collection i get: "This method now accepts
> arguments as an options array instead of the three optional arguments for
> capped, size and max elements"
> Line:
> https://github.com/apache/logging-log4php/blob/develop/src/main/php/appenders/LoggerAppenderMongoDB.php#L283
> 3. The following line does not display the exception message, and it really
> should because the current message is not always true:
> https://github.com/apache/logging-log4php/blob/develop/src/main/php/appenders/LoggerAppenderMongoDB.php#L283
--
This message was sent by Atlassian JIRA
(v6.2#6252)