diff options
-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"); |