Replace deprecated log calls

This commit is contained in:
Michael 2021-10-20 18:53:52 +00:00
parent 353cd66b26
commit f6faae5bb1
28 changed files with 163 additions and 163 deletions

View file

@ -268,7 +268,7 @@ class XML
}
if (!function_exists('xml_parser_create')) {
Logger::log('Xml::toArray: parser function missing');
Logger::notice('Xml::toArray: parser function missing');
return [];
}
@ -283,7 +283,7 @@ class XML
}
if (! $parser) {
Logger::log('Xml::toArray: xml_parser_create: no resource');
Logger::notice('Xml::toArray: xml_parser_create: no resource');
return [];
}
@ -295,9 +295,9 @@ class XML
@xml_parser_free($parser);
if (! $xml_values) {
Logger::log('Xml::toArray: libxml: parse error: ' . $contents, Logger::DATA);
Logger::debug('Xml::toArray: libxml: parse error: ' . $contents);
foreach (libxml_get_errors() as $err) {
Logger::log('libxml: parse: ' . $err->code . " at " . $err->line . ":" . $err->column . " : " . $err->message, Logger::DATA);
Logger::debug('libxml: parse: ' . $err->code . " at " . $err->line . ":" . $err->column . " : " . $err->message);
}
libxml_clear_errors();
return;