From b2f9d5999e78fb382e45c8a32154caa586c86a1d Mon Sep 17 00:00:00 2001 From: Victor Seva Date: Fri, 25 Sep 2015 13:37:17 +0200 Subject: [PATCH] MT#15395 log stats query on critial error in order to try to recover Change-Id: I84e4b8eee7ca99ca201e320b9e2ba52c9ab74904 --- medmysql.c | 1 + 1 file changed, 1 insertion(+) diff --git a/medmysql.c b/medmysql.c index 2b84eb0..a7cce86 100644 --- a/medmysql.c +++ b/medmysql.c @@ -768,6 +768,7 @@ static int medmysql_flush_call_stat_info() { { syslog(LOG_CRIT, "Error executing call info stats query: %s", mysql_error(stats_handler)); + syslog(LOG_CRIT, "stats query: %s", query.str); critical("Failed to execute potentially crucial SQL query, check syslog for details"); return -1; }