openrat-cms

OpenRat Content Management System
git clone http://git.code.weiherhei.de/openrat-cms.git
Log | Files | Refs | README

commit e4e4fdee041f9219fafc54fe64b9d01cd18434c4
parent 09f577cf177b22d093ab40142fd3ec6988dd0d6f
Author: Jan Dankert <develop@jandankert.de>
Date:   Thu, 19 Nov 2020 14:53:31 +0100

Using warn() instead of error()

Diffstat:
Mmodules/cms/Dispatcher.class.php | 2+-
Mmodules/cms/generator/ValueGenerator.class.php | 2+-
Mmodules/cms/generator/target/FtpTarget.class.php | 2+-
Mmodules/util/Ldap.class.php | 3++-
4 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/modules/cms/Dispatcher.class.php b/modules/cms/Dispatcher.class.php @@ -175,7 +175,7 @@ class Dispatcher if ( Configuration::subset('security')->is('use_post_token',true) && $this->request->isAction && $this->request->getToken() != Session::token() ) { - Logger::error( TextMessage::create( + Logger::warn( TextMessage::create( 'Token mismatch: Needed ${expected}), but got ${actual} Maybe an attacker?', [ 'expected' => Session::token(), diff --git a/modules/cms/generator/ValueGenerator.class.php b/modules/cms/generator/ValueGenerator.class.php @@ -514,7 +514,7 @@ class ValueGenerator extends BaseGenerator default: $inhalt = ''; - Logger::error('subtype for linkinfo not implemented:'.$element->subtype); + Logger::warn('subtype for linkinfo not implemented:'.$element->subtype); } break; diff --git a/modules/cms/generator/target/FtpTarget.class.php b/modules/cms/generator/target/FtpTarget.class.php @@ -45,7 +45,7 @@ class FtpTarget extends BaseTarget $this->connection = $this->createConnection(); if (!$this->connection) { - Logger::error('Cannot connect to ' . $this->url->host . ':' . $this->url->port); + Logger::warn('Cannot connect to ' . $this->url->host . ':' . $this->url->port); throw new PublisherException('Cannot connect to ' . $this->url->scheme . '-server: ' . $this->url->host . ':' . $this->url->port); } diff --git a/modules/util/Ldap.class.php b/modules/util/Ldap.class.php @@ -26,6 +26,7 @@ use RuntimeException; * @author $Author$ * @version $Revision$ * @package openrat.services + * @deprecated */ class Ldap { @@ -68,7 +69,7 @@ class Ldap // zurueck gegeben. Dann erscheint zwar keine Fehlermeldung, aber zumindestens misslingt // der nachfolgende Bind-Befehl. if (!is_resource($this->connection) || $this->connection === false) { - Logger::error("connect to ldap server '$ldapHost:$ldapPort' failed"); + Logger::warn("connect to ldap server '$ldapHost:$ldapPort' failed"); // Abbruch, wenn LDAP-Server nicht erreichbar throw new RuntimeException("Connection failed to $ldapHost:$ldapPort (" . ldap_errno() . '/' . ldap_error() . '). Please contact your administrator.'); }