Skip to content

Better database exception logging #1407

@michalcharvat

Description

@michalcharvat

With debug disabled, it is very difficult to see the original database exception. End users only report screens with Database Exception popups.

The error log does not help either. It only shows go/core/db/DbException in /usr/share/groupoffice/go/core/db/Statement.php at line 188 with the message “Database exception”.

It would help if ErrorHandler were called when a PDOException occurs, before throwing DbException.

Error message is from 6.8 version, in 25 its line 195

throw new DbException($e, $this);

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