summaryrefslogtreecommitdiffstats
path: root/lib/private/Log/Systemdlog.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Log/Systemdlog.php')
-rw-r--r--lib/private/Log/Systemdlog.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/private/Log/Systemdlog.php b/lib/private/Log/Systemdlog.php
index e74cab40fd6..692af7d8ecf 100644
--- a/lib/private/Log/Systemdlog.php
+++ b/lib/private/Log/Systemdlog.php
@@ -58,11 +58,10 @@ class Systemdlog extends LogDetails implements IWriter {
public function __construct(SystemConfig $config) {
parent::__construct($config);
- if(!function_exists('sd_journal_send')) {
+ if (!function_exists('sd_journal_send')) {
throw new HintException(
'PHP extension php-systemd is not available.',
'Please install and enable PHP extension systemd if you wish to log to the Systemd journal.');
-
}
$this->syslogId = $config->getValue('syslog_tag', 'Nextcloud');
}