mirror of
https://github.com/friendica/friendica
synced 2025-04-25 16:30:10 +00:00
change regex for fail2ban
This commit is contained in:
parent
aa15c0e094
commit
b5afd2a21d
3 changed files with 5 additions and 7 deletions
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue