From c0261fd627f71d17b89ae67ef4a0a2e43b4b719d Mon Sep 17 00:00:00 2001 From: vraatikka Date: Fri, 28 Jun 2013 11:39:54 +0300 Subject: [PATCH] Changed at exit function to void skygw_logmanager_exit(void) --- core/gateway.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/core/gateway.c b/core/gateway.c index c9e70fe3e..95cf91104 100644 --- a/core/gateway.c +++ b/core/gateway.c @@ -180,7 +180,7 @@ void **threads; char buf[1024], *home, *cnf_file = NULL; int i; - i = atexit(skygw_logmanager_done); + i = atexit(skygw_logmanager_exit); if (i != 0) { fprintf(stderr, "Couldn't register exit function.\n"); } @@ -210,6 +210,15 @@ int i; if (cnf_file == NULL) { + char* str = (char *)calloc(1, + sizeof("Query type is ")+ + sizeof("QUERY_TYPE_SESSION_WRITE")); + sprintf(str, + "Query type is %s\n", + STRQTYPE( + skygw_query_classifier_get_type( + "SELECT user from mysql.user", 0))); + skygw_log_write(NULL, LOGFILE_MESSAGE,str); skygw_log_write( NULL, LOGFILE_ERROR,