Re: "db reconnect successful" errors

Robert Schulze <[email protected]> Wed, 23 Apr 2008 10:22:28 +0200
Newsgroups gmane.comp.apache.mod-log-sql
Message-ID <[email protected]>
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
_______________________________________________
Download the latest version at http://www.outoforder.cc/projects/apache/mod_log_sql/

To unsubscribe send an e-mail to 
mod_log_sql-unsubscribe-7qY7E20V6GW73k+5HYS8LQqVMODqnSLI@public.gmane.org