From 869af9f323ac8254a8c75b14cd772a5a48c455dd Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 25 Dec 2017 23:03:14 +0000 Subject: [PATCH] Some more logging for auth_ejabberd --- src/Util/ExAuth.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Util/ExAuth.php b/src/Util/ExAuth.php index 054b87aad4..555ab861bd 100644 --- a/src/Util/ExAuth.php +++ b/src/Util/ExAuth.php @@ -310,6 +310,7 @@ class ExAuth $lockpath = Config::get('jabber', 'lockpath'); if (is_null($lockpath)) { + $this->writeLog(LOG_INFO, 'No lockpath defined.'); return; } @@ -325,6 +326,9 @@ class ExAuth // Now it is safe to create the pid file PidFile::create($file); + if (!file_exists($file)) { + $this->writeLog(LOG_WARNING, 'Logfile ' . $file . " couldn't be created."); + } } /**