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:
@ -24,8 +24,7 @@
|
||||
* @endverbatim
|
||||
*/
|
||||
|
||||
#define MXS_MODULE_NAME "avrorouter"
|
||||
#include <maxscale/cdefs.h>
|
||||
#include "avrorouter.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
@ -48,7 +47,6 @@
|
||||
#include <ini.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include "avrorouter.h"
|
||||
#include <maxscale/random_jkiss.h>
|
||||
#include <binlog_common.h>
|
||||
#include <avro/errors.h>
|
||||
|
||||
@ -24,6 +24,8 @@
|
||||
* @endverbatim
|
||||
*/
|
||||
|
||||
#include "avrorouter.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <errno.h>
|
||||
@ -37,7 +39,6 @@
|
||||
#include <maxscale/spinlock.h>
|
||||
#include <maxscale/log_manager.h>
|
||||
#include <maxscale/version.h>
|
||||
#include "avrorouter.h"
|
||||
#include <maxavro.h>
|
||||
#include <maxscale/alloc.h>
|
||||
|
||||
|
||||
@ -30,10 +30,11 @@
|
||||
* @endverbatim
|
||||
*/
|
||||
|
||||
#include "avrorouter.h"
|
||||
|
||||
#include <binlog_common.h>
|
||||
#include <blr_constants.h>
|
||||
#include <sys/stat.h>
|
||||
#include "avrorouter.h"
|
||||
#include <maxscale/log_manager.h>
|
||||
#include <maxscale/pcre2.h>
|
||||
#include <ini.h>
|
||||
|
||||
@ -33,6 +33,7 @@
|
||||
*/
|
||||
|
||||
#include "avrorouter.h"
|
||||
|
||||
#include <maxscale/debug.h>
|
||||
#include <glob.h>
|
||||
|
||||
|
||||
@ -11,11 +11,11 @@
|
||||
* Public License.
|
||||
*/
|
||||
|
||||
#include "avrorouter.h"
|
||||
|
||||
#include <maxscale/mysql_utils.h>
|
||||
#include <jansson.h>
|
||||
#include <maxscale/alloc.h>
|
||||
#include "avrorouter.h"
|
||||
#include <strings.h>
|
||||
|
||||
#define WRITE_EVENT 0
|
||||
|
||||
@ -14,11 +14,9 @@
|
||||
/**
|
||||
* @file avro_schema.c - Avro schema related functions
|
||||
*/
|
||||
#ifndef _GNU_SOURCE
|
||||
#define _GNU_SOURCE
|
||||
#endif
|
||||
|
||||
#include "avrorouter.h"
|
||||
|
||||
#include <maxscale/mysql_utils.h>
|
||||
#include <jansson.h>
|
||||
#include <stdio.h>
|
||||
|
||||
@ -18,6 +18,9 @@
|
||||
* MaxScale AVRO router
|
||||
*
|
||||
*/
|
||||
|
||||
#define MXS_MODULE_NAME "avrorouter"
|
||||
|
||||
#include <maxscale/cdefs.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
|
||||
Reference in New Issue
Block a user