mirror of
https://github.com/friendica/friendica
synced 2025-05-06 15:44:11 +02:00
Loglevels are adjusted
This commit is contained in:
parent
312e4d8844
commit
757a5c2de9
32 changed files with 93 additions and 111 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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 [];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue