change regex for fail2ban

This commit is contained in:
Philipp Holzer 2019-01-07 21:08:09 +01:00 committed by Hypolite Petovan
parent aa15c0e094
commit b5afd2a21d
3 changed files with 5 additions and 7 deletions

View file

@ -323,21 +323,19 @@ class Logger extends BaseObject
* @brief Logs the given message at the given log level
*
* @param string $msg
* @param int $level
* @param string $level
*
* @throws \Exception
* @deprecated since 2019.03 Use Logger::debug() Logger::info() , ... instead
*/
public static function log($msg, $level = 3)
public static function log($msg, $level = LogLevel::INFO)
{
if (!isset(self::$logger)) {
return;
}
$loglevel = self::mapLegacyDebugLevel($level);
$stamp1 = microtime(true);
self::$logger->log($loglevel, $msg);
self::$logger->log($level, $msg);
self::getApp()->saveTimestamp($stamp1, "file");
}