Loglevels are adjusted

This commit is contained in:
Michael 2022-08-30 19:45:30 +00:00
parent 312e4d8844
commit 757a5c2de9
32 changed files with 93 additions and 111 deletions

View file

@ -158,7 +158,7 @@ class DateTimeFormat
try {
$d = new DateTime($s, $from_obj);
} catch (Exception $e) {
Logger::notice('DateTimeFormat::convert: exception: ' . $e->getMessage());
Logger::warning('DateTimeFormat::convert: exception: ' . $e->getMessage());
$d = new DateTime('now', $from_obj);
}

View file

@ -214,7 +214,7 @@ class ParseUrl
];
if ($count > 10) {
Logger::notice('Endless loop detected', ['url' => $url]);
Logger::warning('Endless loop detected', ['url' => $url]);
return $siteinfo;
}

View file

@ -270,7 +270,7 @@ class XML
}
if (!function_exists('xml_parser_create')) {
Logger::notice('Xml::toArray: parser function missing');
Logger::error('Xml::toArray: parser function missing');
return [];
}
@ -285,8 +285,8 @@ class XML
$parser = @xml_parser_create();
}
if (! $parser) {
Logger::notice('Xml::toArray: xml_parser_create: no resource');
if (!$parser) {
Logger::warning('Xml::toArray: xml_parser_create: no resource');
return [];
}