Add definitions of MXS_MODULE_NAME to all modules
All modules now declare a name for the module. This is name is added as a prefix to all messages logged by a module. The prefix should help determine which part of the system logs a message.
This commit is contained in:
@ -59,6 +59,9 @@
|
||||
*
|
||||
* @endverbatim
|
||||
*/
|
||||
|
||||
#include "blr.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
@ -71,7 +74,6 @@
|
||||
#include <maxscale/utils.h>
|
||||
#include <maxscale/secrets.h>
|
||||
#include <maxscale/spinlock.h>
|
||||
#include "blr.h"
|
||||
#include <maxscale/dcb.h>
|
||||
#include <maxscale/spinlock.h>
|
||||
#include <maxscale/housekeeper.h>
|
||||
|
||||
@ -43,6 +43,8 @@
|
||||
* @endverbatim
|
||||
*/
|
||||
|
||||
#define MXS_MODULE_NAME "binlogrouter"
|
||||
|
||||
#include <maxscale/cdefs.h>
|
||||
#include <maxscale/dcb.h>
|
||||
#include <maxscale/buffer.h>
|
||||
|
||||
@ -31,6 +31,9 @@
|
||||
*
|
||||
* @endverbatim
|
||||
*/
|
||||
|
||||
#include "blr.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
@ -39,7 +42,6 @@
|
||||
#include <maxscale/router.h>
|
||||
#include <maxscale/atomic.h>
|
||||
#include <maxscale/spinlock.h>
|
||||
#include "blr.h"
|
||||
#include <maxscale/dcb.h>
|
||||
#include <maxscale/spinlock.h>
|
||||
|
||||
|
||||
@ -48,6 +48,9 @@
|
||||
*
|
||||
* @endverbatim
|
||||
*/
|
||||
|
||||
#include "blr.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <errno.h>
|
||||
@ -62,7 +65,6 @@
|
||||
#include <maxscale/router.h>
|
||||
#include <maxscale/atomic.h>
|
||||
#include <maxscale/spinlock.h>
|
||||
#include "blr.h"
|
||||
#include <maxscale/dcb.h>
|
||||
#include <maxscale/spinlock.h>
|
||||
#include <maxscale/gwdirs.h>
|
||||
|
||||
@ -55,6 +55,9 @@
|
||||
*
|
||||
* @endverbatim
|
||||
*/
|
||||
|
||||
#include "blr.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
@ -63,7 +66,6 @@
|
||||
#include <maxscale/router.h>
|
||||
#include <maxscale/atomic.h>
|
||||
#include <maxscale/session.h>
|
||||
#include "blr.h"
|
||||
#include <maxscale/dcb.h>
|
||||
#include <maxscale/spinlock.h>
|
||||
#include <maxscale/housekeeper.h>
|
||||
|
||||
@ -68,6 +68,8 @@
|
||||
* @endverbatim
|
||||
*/
|
||||
|
||||
#include "blr.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <errno.h>
|
||||
@ -78,7 +80,6 @@
|
||||
#include <maxscale/router.h>
|
||||
#include <maxscale/atomic.h>
|
||||
#include <maxscale/spinlock.h>
|
||||
#include "blr.h"
|
||||
#include <maxscale/dcb.h>
|
||||
#include <maxscale/spinlock.h>
|
||||
#include <maxscale/housekeeper.h>
|
||||
|
||||
@ -40,6 +40,8 @@
|
||||
* @endverbatim
|
||||
*/
|
||||
|
||||
#include "blr.h"
|
||||
|
||||
#include <getopt.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
@ -48,7 +50,6 @@
|
||||
|
||||
#include <maxscale/alloc.h>
|
||||
#include <maxscale/log_manager.h>
|
||||
#include "blr.h"
|
||||
|
||||
|
||||
static void printVersion(const char *progname);
|
||||
|
||||
@ -21,6 +21,9 @@
|
||||
*
|
||||
* @endverbatim
|
||||
*/
|
||||
|
||||
#include "../blr.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
@ -30,7 +33,6 @@
|
||||
#include <maxscale/router.h>
|
||||
#include <maxscale/atomic.h>
|
||||
#include <maxscale/spinlock.h>
|
||||
#include "../blr.h"
|
||||
#include <maxscale/dcb.h>
|
||||
#include <maxscale/spinlock.h>
|
||||
#include <maxscale/housekeeper.h>
|
||||
|
||||
Reference in New Issue
Block a user