Skip to content

SQL query log: log only errors #2193

@dev-101

Description

@dev-101

Hi, many times during development it is convenient to monitor/debug sql queries, but the log gets quickly filled-up with unnecessary queries, which we are not interested in at the moment (although, to be fair, they can also greatly contribute to debugging process).

But, it would be great to also add an option to log only the query errors specifically (equivalent to php debug), so that debugging process gets more straight-forward.

We can add new constant e.g. OSC_DEBUG_DB_LOG_ERROR, that will activate the filter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions