]> git.mxchange.org Git - friendica.git/commitdiff
Some more logging for auth_ejabberd
authorMichael <heluecht@pirati.ca>
Mon, 25 Dec 2017 23:03:14 +0000 (23:03 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 25 Dec 2017 23:03:14 +0000 (23:03 +0000)
src/Util/ExAuth.php

index 054b87aad4d6dafb66447f8c01053d2b35733156..555ab861bdbcc65a02b37996942683888f9dd4da 100644 (file)
@@ -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.");
+               }
        }
 
        /**