Skip to content

Commit

Permalink
fix intendation, check ident parameter emptiness
Browse files Browse the repository at this point in the history
  • Loading branch information
gwinn committed Mar 26, 2021
1 parent 285fd77 commit 0e5f93e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ public function getConfigTreeBuilder()
->enumNode('rfc')
->values([SyslogUdpHandler::RFC5424, SyslogUdpHandler::RFC3164])
->defaultValue(SyslogUdpHandler::RFC5424)
->end() // syslogudp
->end() // syslogudp
->arrayNode('publisher')
->canBeUnset()
->beforeNormalization()
Expand Down
4 changes: 4 additions & 0 deletions Tests/DependencyInjection/ConfigurationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -419,11 +419,13 @@ public function testWithSyslogUdpHandler()
'port' => 514,
'facility' => 'USER',
'level' => 'ERROR',
'ident' => null,
'rfc' => SyslogUdpHandler::RFC3164
]
]
]
];

$config = $this->process($configs);

$this->assertEquals('syslogudp', $config['handlers']['syslogudp']['type']);
Expand All @@ -439,11 +441,13 @@ public function testWithSyslogUdpHandler()
'host' => '127.0.0.1',
'port' => 514,
'facility' => 'USER',
'ident' => false,
'level' => 'ERROR'
]
]
]
];

$config = $this->process($configs);

$this->assertEquals('syslogudp', $config['handlers']['syslogudp']['type']);
Expand Down

0 comments on commit 0e5f93e

Please sign in to comment.