kleine änderungen an den logmeldungen

This commit is contained in:
bernd 2021-03-02 23:52:10 +01:00
parent 493827cb67
commit f57612c00f
4 changed files with 4 additions and 4 deletions

View file

@ -16,7 +16,6 @@ $saved = false;
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
// echo '<pre>' . htmlspecialchars(var_export($_POST, true)) . '</pre>';
$inputLogin = $_POST['login'] ?? '';
$inputEmail = $_POST['email'] ?? '';
$inputCaptcha = $_POST['captcha'] ?? '';

View file

@ -44,13 +44,14 @@ class BaseClass {
} catch (Exception $e) {
throw new Exception("Can't create logger instance");
}
$this->log->d("Create a instance of BaseClass");
$this->log->d("Base class instance successfull created");
/**
* Instanz der Klasse Config erstellen und Konfigurationsdatei
* einlesen lassen.
*/
try {
$this->config = new Config();
$this->log->d("Configuration object successfull created");
$this->config->loadConfig($this->config_path);
$this->log->d("Configuration file parsed");
} catch (Exception $e) {

View file

@ -102,7 +102,7 @@ class Database {
{
$this->pdo = $pdo;
$this->log = $log;
$this->log->d("Databaseobject created");
$this->log->d("Databaseobject successfull created");
// hier vielleicht TableCreate hin
}

View file

@ -97,7 +97,7 @@ class Request extends BaseClass {
$this->log->d("Try to send verification mail");
$link = $baseurl . $validator . $this->token . "\r\n\r\n";
$mailbody = MAILTEXT1 . $mxdomain . MAILTEXT2 . "\r\n\r\n" . $link . $mailClosure;
$mailbody = MAILTEXT1 . " {$mxdomain} " . MAILTEXT2 . "\r\n\r\n" . $link . $mailClosure;
if (mail($mailTo, $mailSubject, $mailbody, $mailFrom))
{
$this->log->i("Validationmail successfull send");