summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathaniel Catchpole2017-05-18 13:18:35 (GMT)
committerNathaniel Catchpole2017-05-18 13:18:35 (GMT)
commit6207709941d2962cb44af07b37ecd87286d89e41 (patch)
treed917c435848ab49737dc7fdf04ee33a320a78d90
parent5f2428ee178ecd95ac2536f064a19b068297389e (diff)
Issue #2876740 by c.nish2k3, gaurav.kapoor, dagmar, alexpott: Cleanup Logger\SysLog constructor
-rw-r--r--core/modules/syslog/src/Logger/SysLog.php3
1 files changed, 0 insertions, 3 deletions
diff --git a/core/modules/syslog/src/Logger/SysLog.php b/core/modules/syslog/src/Logger/SysLog.php
index c2b73de..308060a 100644
--- a/core/modules/syslog/src/Logger/SysLog.php
+++ b/core/modules/syslog/src/Logger/SysLog.php
@@ -53,9 +53,6 @@ class SysLog implements LoggerInterface {
protected function openConnection() {
if (!$this->connectionOpened) {
$facility = $this->config->get('facility');
- if ($facility === '') {
- $facility = defined('LOG_LOCAL0') ? LOG_LOCAL0 : LOG_USER;
- }
$this->connectionOpened = openlog($this->config->get('identity'), LOG_NDELAY, $facility);
}
}