Browse Source

Make sure this works on any hostname

Jordi Boggiano 8 năm trước cách đây
mục cha
commit
2ea3d95ca2
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      tests/Monolog/Formatter/GelfMessageFormatterTest.php

+ 1 - 1
tests/Monolog/Formatter/GelfMessageFormatterTest.php

@@ -226,7 +226,7 @@ class GelfMessageFormatterTest extends \PHPUnit_Framework_TestCase
 
     public function testFormatWithUnlimitedLength()
     {
-        $formatter = new GelfMessageFormatter(null, null, 'ctxt_', PHP_INT_MAX);
+        $formatter = new GelfMessageFormatter('LONG_SYSTEM_NAME', null, 'ctxt_', PHP_INT_MAX);
         $record = array(
             'level' => Logger::ERROR,
             'level_name' => 'ERROR',