diff options
author | Edward Rudd | 2007-07-16 12:45:04 +0000 |
---|---|---|
committer | Edward Rudd | 2007-07-16 12:45:04 +0000 |
commit | fdee18399169716032a052effedf886480590efc (patch) | |
tree | 94b3ed6751dbbcbbc895dce7e67a9d696f2093dc | |
parent | 4a23b85bf1e05ed218572079046ee6a26bdfeeda (diff) |
Add better error logging in mod_log_sql_mysql.c
-rw-r--r-- | mod_log_sql_mysql.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mod_log_sql_mysql.c b/mod_log_sql_mysql.c index 7631b14..8202672 100644 --- a/mod_log_sql_mysql.c +++ b/mod_log_sql_mysql.c | |||
@@ -147,10 +147,10 @@ static logsql_query_ret log_sql_mysql_query(request_rec *r,logsql_dbconnection * | |||
147 | SIGNAL_RELEASE | 147 | SIGNAL_RELEASE |
148 | return LOGSQL_QUERY_SUCCESS; | 148 | return LOGSQL_QUERY_SUCCESS; |
149 | } | 149 | } |
150 | log_error(APLOG_MARK, APLOG_ERR, 0, r->server, | ||
151 | "mysql_query returned (%d)", retval); | ||
152 | /* Check to see if the error is "nonexistent table" */ | ||
153 | real_error = mysql_errno(dblink); | 150 | real_error = mysql_errno(dblink); |
151 | log_error(APLOG_MARK, APLOG_ERR, 0, r->server, | ||
152 | "mysql_query returned (%d) \"%s\"", real_error, MYSQL_ERROR(dblink)); | ||
153 | /* Check to see if the error is "nonexistent table" */ | ||
154 | 154 | ||
155 | if (real_error == ER_NO_SUCH_TABLE) { | 155 | if (real_error == ER_NO_SUCH_TABLE) { |
156 | log_error(APLOG_MARK,APLOG_ERR,0, r->server,"table does not exist, preserving query"); | 156 | log_error(APLOG_MARK,APLOG_ERR,0, r->server,"table does not exist, preserving query"); |