mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-06 16:46:30 +02:00
fix: improve FeedExpander (#3103)
* fix: improve FeedExpander Include the first libxml error in exception. Give better error message if trying to parse the empty string. Log all libxml errors if debug mode is enabled. * error handling and logging tweak
This commit is contained in:
@@ -6,7 +6,9 @@ final class Logger
|
||||
{
|
||||
public static function debug(string $message, array $context = [])
|
||||
{
|
||||
self::log('DEBUG', $message, $context);
|
||||
if (Debug::isEnabled()) {
|
||||
self::log('DEBUG', $message, $context);
|
||||
}
|
||||
}
|
||||
|
||||
public static function info(string $message, array $context = []): void
|
||||
|
Reference in New Issue
Block a user