Skip to content

Bug: Logs tab don't show in debug toolbar #9725

@gspawn

Description

@gspawn

PHP Version

8.3

CodeIgniter4 Version

4.6.3

CodeIgniter4 Installation Method

Composer (using codeigniter4/appstarter)

Which operating systems have you tested for this bug?

Windows

Which server did you use?

apache

Database

mysql

What happened?

New installation, environment=development
Debug toolbar show all the tabs but Logs

Steps to Reproduce

In basecontroller i log a message with log_message('error', 'Inizializzazione Base' );

In the framework Logs.php class, in the collectLogs() it seems $this->data is null (not a null array)
Btw, if I check if empt the $cache will charge data (and $this->data is valorized with that data) but the toolbar continue to not show "Logs" tab

Expected Output

collectLogs charge and return $this->data (after the little change to the if ($this->data !== []) at line 91) so I expect to see "Logs" in the debug toolbar, but it is not present...

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugVerified issues on the current code behavior or pull requests that will fix them

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions