Added SS_DEBUG for logmanager

This commit is contained in:
Massimiliano Pinto
2013-07-01 17:58:32 +02:00
parent e3f08e392b
commit 5408ec1a93

View File

@ -17,10 +17,11 @@
*/ */
#include "mysql_client_server_protocol.h" #include "mysql_client_server_protocol.h"
#if defined(SS_DEBUG)
#include <skygw_types.h> #include <skygw_types.h>
#include <skygw_utils.h> #include <skygw_utils.h>
#include <log_manager.h> #include <log_manager.h>
#endif
/* /*
* MySQL Protocol module for handling the protocol between the gateway * MySQL Protocol module for handling the protocol between the gateway
* and the backend MySQL database. * and the backend MySQL database.
@ -29,8 +30,9 @@
* Date Who Description * Date Who Description
* 14/06/2013 Mark Riddoch Initial version * 14/06/2013 Mark Riddoch Initial version
* 17/06/2013 Massimiliano Pinto Added Gateway To Backends routines * 17/06/2013 Massimiliano Pinto Added Gateway To Backends routines
* 27/06/13 Vilho Raatikka Added skygw_log_write command as an example * 27/06/2013 Vilho Raatikka Added skygw_log_write command as an example
* and necessary headers. * and necessary headers.
* 01/07/2013 Massimiliano Pinto Put Log Manager example code behind SS_DEBUG macros.
*/ */
static char *version_str = "V1.0.0"; static char *version_str = "V1.0.0";
@ -73,10 +75,12 @@ version()
void void
ModuleInit() ModuleInit()
{ {
#if defined(SS_DEBUG)
skygw_log_write(NULL, skygw_log_write(NULL,
LOGFILE_MESSAGE, LOGFILE_MESSAGE,
"Initial MySQL Client Protcol module."); "Initial MySQL Backend Protcol module.");
fprintf(stderr, "Initial MySQL Client Protcol module.\n"); #endif
fprintf(stderr, "Initial MySQL Backend Protcol module.\n");
} }
/* /*