aboutsummaryrefslogtreecommitdiff
path: root/lib/Debug.php
diff options
context:
space:
mode:
authorGravatar Dag <me@dvikan.no> 2024-08-08 04:31:47 +0200
committerGravatar GitHub <noreply@github.com> 2024-08-08 04:31:47 +0200
commit2acd415475e0d1f4b621003a85ece6e47a3790f7 (patch)
tree60c0280a9485f63f5b4d710520edd39764ef406f /lib/Debug.php
parent6afd13eb06276f085f245c5075972ef36eb6740a (diff)
downloadrss-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.php16
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);
- }
}