MXS-2005: Remove unused code
Removed skygw_utils and relate files along with the old log manager code. Also removed file flushing due to it being redundant; messages are written to the file immediately. Adjusted tests to accommodate this change.
This commit is contained in:
@ -28,12 +28,12 @@ MXS_BEGIN_DECLS
|
||||
const char *debug_expr = #exp; /** The MXS_ERROR marco doesn't seem to like stringification */ \
|
||||
MXS_ERROR("debug assert at %s:%d failed: %s\n", (char*)__FILE__, __LINE__, debug_expr); \
|
||||
fprintf(stderr, "debug assert at %s:%d failed: %s\n", (char*)__FILE__, __LINE__, debug_expr); \
|
||||
mxs_log_flush_sync(); raise(SIGABRT);} } while (false)
|
||||
raise(SIGABRT);} } while (false)
|
||||
#define ss_info_dassert(exp,info) do { if(!(exp)){\
|
||||
const char *debug_expr = #exp; \
|
||||
MXS_ERROR("debug assert at %s:%d failed: %s (%s)\n", (char*)__FILE__, __LINE__, info, debug_expr); \
|
||||
fprintf(stderr, "debug assert at %s:%d failed: %s (%s)\n", (char*)__FILE__, __LINE__, info, debug_expr); \
|
||||
mxs_log_flush_sync();raise(SIGABRT);} } while (false)
|
||||
raise(SIGABRT);} } while (false)
|
||||
# define ss_debug(exp) exp
|
||||
# define ss_dfprintf fprintf
|
||||
# define ss_dfflush fflush
|
||||
|
||||
@ -94,23 +94,7 @@ typedef struct mxs_log_throttling
|
||||
|
||||
bool mxs_log_init(const char* ident, const char* logdir, mxs_log_target_t target);
|
||||
void mxs_log_finish(void);
|
||||
|
||||
/**
|
||||
* Start log flushing thread
|
||||
*
|
||||
* @return True if log flusher thread was started
|
||||
*/
|
||||
bool mxs_log_start_flush_thr();
|
||||
|
||||
/**
|
||||
* Stop log flushing thread
|
||||
*/
|
||||
void mxs_log_stop_flush_thr();
|
||||
|
||||
int mxs_log_flush();
|
||||
int mxs_log_flush_sync();
|
||||
bool mxs_log_rotate();
|
||||
|
||||
int mxs_log_set_priority_enabled(int priority, bool enabled);
|
||||
void mxs_log_set_syslog_enabled(bool enabled);
|
||||
void mxs_log_set_maxlog_enabled(bool enabled);
|
||||
|
||||
Reference in New Issue
Block a user