Skip to content

Remove connection logs to avoid recursive stack when using the database as the log store - #9

Open
bendoerr wants to merge 2 commits into
pixelvide:mainfrom
bendoerr:patch-1
Open

Remove connection logs to avoid recursive stack when using the database as the log store#9
bendoerr wants to merge 2 commits into
pixelvide:mainfrom
bendoerr:patch-1

Conversation

@bendoerr

@bendoerr bendoerr commented Oct 28, 2024

Copy link
Copy Markdown

This change removes log statements from both the PostgresConnector.php and MySqlConnector.php. Some frameworks and plugins use the database as their log store, so having a log statement in the connector code can cause a recursive stack.

Resolves #10

Similar to pixelvide#8, this is for the PostgresConnector. This entirely removes the log line. Some frameworks and plugins use the database as their log store, so having a log statement in the connector code can cause a recursive stack.
It is common for frameworks to use databases as log stores. Having logging within the database connection code can lead to recursive stack situations.
@bk-ty

bk-ty commented Jan 14, 2026

Copy link
Copy Markdown

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Recursive stack when using the database as a log store

2 participants