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

@ -30,6 +30,8 @@
* @endverbatim
*/
#define MXS_MODULE_NAME "CDC"
#include <cdc.h>
#include <maxscale/alloc.h>
#include <maxscale/modinfo.h>

View File

@ -32,6 +32,8 @@
* @endverbatim
*/
#define MXS_MODULE_NAME "HTTPD"
#include "httpd.h"
#include <ctype.h>
#include <maxscale/alloc.h>

View File

@ -11,6 +11,8 @@
* Public License.
*/
#define MXS_MODULE_NAME "MySQLBackend"
#include <maxscale/protocol/mysql.h>
#include <maxscale/log_manager.h>
#include <maxscale/modutil.h>

View File

@ -45,6 +45,9 @@
* 07/02/2016 Martin Brampton Split off authentication and SSL.
* 31/05/2016 Martin Brampton Implement connection throttling
*/
#define MXS_MODULE_NAME "MySQLClient"
#include <maxscale/protocol.h>
#include <maxscale/alloc.h>
#include <maxscale/log_manager.h>

View File

@ -10,6 +10,9 @@
* of this software will be governed by version 2 or later of the General
* Public License.
*/
#define MXS_MODULE_NAME "maxscaled"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

View File

@ -10,6 +10,9 @@
* of this software will be governed by version 2 or later of the General
* Public License.
*/
#define MXS_MODULE_NAME "telnetd"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>