6.0.0-alpha14
6/30/25

[#14310] /Db/Adapter/Pdo/Base.php does not Log in file.
Summary /Db/Adapter/Pdo/Base.php does not Log in file.
Queue Horde Base
Queue Version 5.2.9
Type Bug
State Not A Bug
Priority 2. Medium
Owners
Requester pouyan.azari (at) uni-wuerzburg (dot) de
Created 03/31/2016 (3378 days ago)
Due
Updated 03/07/2025 (115 days ago)
Assigned
Resolved 03/31/2016 (3378 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
03/07/2025 11:56:30 PM TheFucker (at) gmail (dot) com Comment #3 Reply to this comment
<script></script>
03/31/2016 11:03:05 AM Jan Schneider Comment #2
State ⇒ Not A Bug
Reply to this comment
This is a chicken-and-egg problem. We cannot log to the real logger in 
the Horde_Db constructor, because the logger itself may rely on a 
Horde_Db connection, getting us into an infinite loop. Thus we can 
only assign the real logger after the DB connection was successful.
03/31/2016 08:21:24 AM pouyan (dot) azari (at) uni-wuerzburg (dot) de Comment #1
Priority ⇒ 2. Medium
Patch ⇒ No
Milestone ⇒
Queue ⇒ Horde Base
Summary ⇒ /Db/Adapter/Pdo/Base.php does not Log in file.
Type ⇒ Bug
State ⇒ Unconfirmed
Reply to this comment
/Db/Adapter/Pdo/Base.php  when there is a problem with the MySQL 
connection, does not log to the file.

Even when it is said that in the browser:
Details have been logged for the administrator.

I checked the file and commenting the statement at line 49:
            //$e2->logged = true;
leads to error being logged to the log file, which is the correct attitude.

(We use LOCLAL_7 and rsyslog for logging)

Saved Queries