Fix to MXS-70: https://mariadb.atlassian.net/browse/MXS-70
Added assert information to error log.
This commit is contained in:
@ -50,7 +50,21 @@
|
||||
# define ss_prof(exp)
|
||||
#endif /* SS_DEBUG || SS_PROF */
|
||||
|
||||
#if defined(SS_DEBUG)
|
||||
#if defined(SS_DEBUG) && defined(LOG_ASSERT)
|
||||
#include <log_manager.h>
|
||||
# define ss_dassert(exp) if(!(exp)){(skygw_log_write(LE,\
|
||||
"debug assert %s:%d\n", \
|
||||
(char*)__FILE__, \
|
||||
__LINE__));skygw_log_sync_all();assert(exp);}
|
||||
#define ss_info_dassert(exp,info) if(!(exp)){(skygw_log_write(LE,\
|
||||
"debug assert %s:%d %s\n", \
|
||||
(char*)__FILE__, \
|
||||
__LINE__,info));skygw_log_sync_all();assert(exp);}
|
||||
# define ss_debug(exp) exp
|
||||
# define ss_dfprintf fprintf
|
||||
# define ss_dfflush fflush
|
||||
# define ss_dfwrite fwrite
|
||||
#elif defined(SS_DEBUG)
|
||||
|
||||
# define ss_debug(exp) exp
|
||||
# define ss_dfprintf fprintf
|
||||
|
Reference in New Issue
Block a user