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:
Markus Mäkelä
2017-01-16 11:16:05 +02:00
parent d054bc9b04
commit 2cabcea211
66 changed files with 154 additions and 32 deletions

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -33,6 +33,7 @@
*/
#include "avrorouter.h"
#include <maxscale/debug.h>
#include <glob.h>

View File

@ -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

View File

@ -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>

View File

@ -18,6 +18,9 @@
* MaxScale AVRO router
*
*/
#define MXS_MODULE_NAME "avrorouter"
#include <maxscale/cdefs.h>
#include <stdbool.h>
#include <stdint.h>