[Mod_log_sql] "db reconnect successful" errors

Robert Schulze rs at bytecamp.net
Wed Apr 23 04:22:28 EDT 2008


Hi Tim,

Tim Gustafson schrieb:
> Hello,
> 
> I'm getting zillions of these in my httpd error log:
> 
> [Tue Apr 22 10:03:50 2008] [error] mysql_query returned (1)
> [Tue Apr 22 10:03:50 2008] [notice] db reconnect successful

download mod_log_sql 1.101 and edit mod_log_sql.c (line 437).
Replace

"apr_pool_cleanup_register(p, NULL, log_sql_close_link, 
log_sql_close_link);"

with

"apr_pool_cleanup_register(p, NULL, log_sql_close_link, 
apr_pool_cleanup_null);"

Then compile, install and see if your messages are gone.


Rob



More information about the Mod_log_sql mailing list