Changeset 419 for trunk/lib/DB.inc.php
- Timestamp:
- Jul 3, 2013 3:36:59 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/DB.inc.php
r418 r419 302 302 } 303 303 304 // Ensure we have an active connection. 304 // Ensure we have an active connection. 305 // If we continue on a dead connection we might experience a "MySQL server has gone away" error. 306 // http://dev.mysql.com/doc/refman/5.0/en/gone-away.html 305 307 if (!mysql_ping($this->dbh)) { 306 $app->logMsg( 'MySQL ping failed; reconnectingâŠ', LOG_NOTICE, __FILE__, __LINE__);308 $app->logMsg(sprintf('MySQL ping failed; reconnecting⊠("%s")', truncate(trim($debugqry), 150)), LOG_NOTICE, __FILE__, __LINE__); 307 309 $this->reconnect(); 308 310 }
Note: See TracChangeset
for help on using the changeset viewer.