From 06b595407055cbcf794a42a59016e05fdf28a201 Mon Sep 17 00:00:00 2001 From: Janos SUTO Date: Tue, 23 Jan 2018 20:00:40 +0100 Subject: [PATCH] improved mysql logging Signed-off-by: Janos SUTO --- src/mysql.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mysql.c b/src/mysql.c index 810b4dd1..423c69fd 100644 --- a/src/mysql.c +++ b/src/mysql.c @@ -111,13 +111,13 @@ int p_exec_stmt(struct session_data *sdata, struct sql *sql){ if(mysql_stmt_bind_param(sql->stmt, bind)){ sdata->sql_errno = mysql_stmt_errno(sql->stmt); - syslog(LOG_PRIORITY, "%s: error: mysql_stmt_bind_param() '%s' (errno: %d)", sdata->ttmpfile, mysql_stmt_error(sql->stmt), sdata->sql_errno); + syslog(LOG_PRIORITY, "ERROR: %s: mysql_stmt_bind_param() '%s' (errno: %d)", sdata->ttmpfile, mysql_stmt_error(sql->stmt), sdata->sql_errno); return ret; } if(mysql_stmt_execute(sql->stmt)){ sdata->sql_errno = mysql_stmt_errno(sql->stmt); - syslog(LOG_PRIORITY, "%s: error: mysql_stmt_execute() '%s' (errno: %d)", sdata->ttmpfile, mysql_error(&(sdata->mysql)), sdata->sql_errno); + syslog(LOG_PRIORITY, "ERROR: %s: mysql_stmt_execute() '%s' (errno: %d)", sdata->ttmpfile, mysql_error(&(sdata->mysql)), sdata->sql_errno); return ret; }