We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 787e9e9 commit 2f66bcfCopy full SHA for 2f66bcf
tests/logging/addLogger-003.phpt
@@ -1,5 +1,5 @@
1
--TEST--
2
-MongoDB\Driver\Logging\addLogger(): Adding one logger multiple times
+MongoDB\Driver\Logging\addLogger(): Adding the same logger multiple times is a NOP
3
--FILE--
4
<?php
5
require_once __DIR__ . "/../utils/basic.inc";
@@ -22,6 +22,9 @@ addLogger($logger);
22
log(Logger::LEVEL_ERROR, 'error');
23
log(Logger::LEVEL_CRITICAL, 'critical');
24
log(Logger::LEVEL_WARNING, 'warning');
25
+
26
+addLogger($logger);
27
28
log(Logger::LEVEL_MESSAGE, 'message');
29
log(Logger::LEVEL_INFO, 'info');
30
log(Logger::LEVEL_DEBUG, 'debug');
0 commit comments