fixed line intends

This commit is contained in:
Philipp Holzer 2019-02-17 02:09:39 +01:00
parent 3d07774509
commit d87a6e5a67
No known key found for this signature in database
GPG Key ID: 517BE60E2CE5C8A5
1 changed files with 14 additions and 14 deletions

View File

@ -317,25 +317,25 @@ class Logger extends BaseObject
self::getApp()->getProfiler()->saveTimestamp($stamp1, 'file', System::callstack()); self::getApp()->getProfiler()->saveTimestamp($stamp1, 'file', System::callstack());
} }
/** /**
* @brief Logs the given message at the given log level * @brief Logs the given message at the given log level
* *
* @param string $msg * @param string $msg
* @param string $level * @param string $level
* *
* @throws \Exception * @throws \Exception
* @deprecated since 2019.03 Use Logger::debug() Logger::info() , ... instead * @deprecated since 2019.03 Use Logger::debug() Logger::info() , ... instead
*/ */
public static function log($msg, $level = LogLevel::INFO) public static function log($msg, $level = LogLevel::INFO)
{ {
if (!isset(self::$logger)) { if (!isset(self::$logger)) {
return; return;
} }
$stamp1 = microtime(true); $stamp1 = microtime(true);
self::$logger->log($level, $msg); self::$logger->log($level, $msg);
self::getApp()->getProfiler()->saveTimestamp($stamp1, "file", System::callstack()); self::getApp()->getProfiler()->saveTimestamp($stamp1, "file", System::callstack());
} }
/** /**
* @brief An alternative logger for development. * @brief An alternative logger for development.
@ -347,14 +347,14 @@ class Logger extends BaseObject
* @param string $level * @param string $level
* @throws \Exception * @throws \Exception
*/ */
public static function devLog($msg, $level = LogLevel::DEBUG) public static function devLog($msg, $level = LogLevel::DEBUG)
{ {
if (!isset(self::$logger)) { if (!isset(self::$logger)) {
return; return;
} }
$stamp1 = microtime(true); $stamp1 = microtime(true);
self::$devLogger->log($level, $msg); self::$devLogger->log($level, $msg);
self::getApp()->getProfiler()->saveTimestamp($stamp1, "file", System::callstack()); self::getApp()->getProfiler()->saveTimestamp($stamp1, "file", System::callstack());
} }
} }