mirror of
https://github.com/friendica/friendica
synced 2025-05-17 19:04:11 +02:00
Individual callstacks are removed from the logger
This commit is contained in:
parent
d05fbe6e45
commit
e4a37f344e
36 changed files with 66 additions and 86 deletions
|
@ -26,7 +26,6 @@ use DOMElement;
|
|||
use DOMNode;
|
||||
use DOMXPath;
|
||||
use Friendica\Core\Logger;
|
||||
use Friendica\Core\System;
|
||||
use SimpleXMLElement;
|
||||
|
||||
/**
|
||||
|
@ -451,7 +450,7 @@ class XML
|
|||
$x = @simplexml_load_string($s);
|
||||
if (!$x) {
|
||||
if (!$suppress_log) {
|
||||
Logger::error('Error(s) while parsing XML string.', ['callstack' => System::callstack()]);
|
||||
Logger::error('Error(s) while parsing XML string.');
|
||||
foreach (libxml_get_errors() as $err) {
|
||||
Logger::info('libxml error', ['code' => $err->code, 'position' => $err->line . ':' . $err->column, 'message' => $err->message]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue