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

@ -25,6 +25,8 @@
* @endverbatim
*/
#define MXS_MODULE_NAME "CDCPlainAuth"
#include <maxscale/gw_authenticator.h>
#include <sys/stat.h>
#include <cdc.h>

View File

@ -11,6 +11,8 @@
* Public License.
*/
#define MXS_MODULE_NAME "GSSAPIAuth"
#include <maxscale/gw_authenticator.h>
#include <maxscale/alloc.h>
#include <maxscale/dcb.h>

View File

@ -11,6 +11,8 @@
* Public License.
*/
#define MXS_MODULE_NAME "GSSAPIBackendAuth"
#include <maxscale/gw_authenticator.h>
#include <maxscale/alloc.h>
#include <maxscale/dcb.h>

View File

@ -24,6 +24,8 @@
* @endverbatim
*/
#define MXS_MODULE_NAME "HTTPAuth"
#include <maxscale/gw_authenticator.h>
#include <maxscale/alloc.h>
#include <maxscale/modinfo.h>

View File

@ -26,6 +26,8 @@
* @endverbatim
*/
#define MXS_MODULE_NAME "MaxAdminAuth"
#include <maxscale/gw_authenticator.h>
#include <maxscale/alloc.h>
#include <maxscale/modinfo.h>

View File

@ -35,6 +35,8 @@
* @endverbatim
*/
#define MXS_MODULE_NAME "MySQLAuth"
#include <stdio.h>
#include <ctype.h>
#include <mysql.h>

View File

@ -25,6 +25,8 @@
* @endverbatim
*/
#define MXS_MODULE_NAME "MySQLAuth"
#include <mysql_auth.h>
#include <maxscale/protocol/mysql.h>
#include <maxscale/gw_authenticator.h>

View File

@ -29,6 +29,8 @@
* @endverbatim
*/
#define MXS_MODULE_NAME "MySQLBackendAuth"
#include <maxscale/gw_authenticator.h>
#include <maxscale/protocol/mysql.h>
#include <maxscale/alloc.h>

View File

@ -27,6 +27,8 @@
* @endverbatim
*/
#define MXS_MODULE_NAME "NullAuthAllow"
#include <maxscale/gw_authenticator.h>
#include <maxscale/modinfo.h>
#include <maxscale/dcb.h>

View File

@ -27,6 +27,8 @@
* @endverbatim
*/
#define MXS_MODULE_NAME "NullAuthDeny"
#include <maxscale/gw_authenticator.h>
#include <maxscale/modinfo.h>
#include <maxscale/dcb.h>