diff options
author | 2024-08-08 04:31:47 +0200 | |
---|---|---|
committer | 2024-08-08 04:31:47 +0200 | |
commit | 2acd415475e0d1f4b621003a85ece6e47a3790f7 (patch) | |
tree | 60c0280a9485f63f5b4d710520edd39764ef406f /lib/Debug.php | |
parent | 6afd13eb06276f085f245c5075972ef36eb6740a (diff) | |
download | rss-bridge-2acd415475e0d1f4b621003a85ece6e47a3790f7.tar.gz rss-bridge-2acd415475e0d1f4b621003a85ece6e47a3790f7.tar.zst rss-bridge-2acd415475e0d1f4b621003a85ece6e47a3790f7.zip |
refactor: drop usage of Debug::log (#4202)
* refactor: drop usage of Debug::log
* lint
Diffstat (limited to 'lib/Debug.php')
-rw-r--r-- | lib/Debug.php | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/Debug.php b/lib/Debug.php index ba9e787e..630fd8ec 100644 --- a/lib/Debug.php +++ b/lib/Debug.php @@ -15,20 +15,4 @@ class Debug } return false; } - - /** - * @deprecated Use $this->logger->debug() - */ - public static function log($message) - { - $e = new \Exception(); - $trace = trace_from_exception($e); - // Drop the current frame - array_pop($trace); - $lastFrame = $trace[array_key_last($trace)]; - $text = sprintf('%s(%s): %s', $lastFrame['file'], $lastFrame['line'], $message); - - $logger = RssBridge::getLogger(); - $logger->debug($text); - } } |