mirror of
https://github.com/friendica/friendica
synced 2025-04-27 08:30:10 +00:00
Add tests for ParsedLogIterator
This commit is contained in:
parent
ec4f53d56f
commit
ce0d7616cc
3 changed files with 159 additions and 2 deletions
|
@ -43,11 +43,11 @@ class ParsedLogTest extends TestCase
|
|||
public function testGenericLogLine()
|
||||
{
|
||||
self::do_log_line(
|
||||
'2021-05-24T15:40:01Z worker [NOTICE]: Spool file does does not start with "item-" {"file":".","worker_id":"560c8b6","worker_cmd":"SpoolPost"} - {"file":"SpoolPost.php","line":40,"function":"execute","uid":"fd8c37","process_id":20846}',
|
||||
'2021-05-24T15:40:01Z worker [WARNING]: Spool file does does not start with "item-" {"file":".","worker_id":"560c8b6","worker_cmd":"SpoolPost"} - {"file":"SpoolPost.php","line":40,"function":"execute","uid":"fd8c37","process_id":20846}',
|
||||
[
|
||||
'date' => '2021-05-24T15:40:01Z',
|
||||
'context' => 'worker',
|
||||
'level' => 'NOTICE',
|
||||
'level' => 'WARNING',
|
||||
'message' => 'Spool file does does not start with "item-"',
|
||||
'data' => '{"file":".","worker_id":"560c8b6","worker_cmd":"SpoolPost"}',
|
||||
'source' => '{"file":"SpoolPost.php","line":40,"function":"execute","uid":"fd8c37","process_id":20846}',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue