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:
@ -10,6 +10,9 @@
|
||||
* of this software will be governed by version 2 or later of the General
|
||||
* Public License.
|
||||
*/
|
||||
|
||||
#define MXS_MODULE_NAME "ccrfilter"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <maxscale/filter.h>
|
||||
#include <maxscale/modinfo.h>
|
||||
|
@ -10,6 +10,9 @@
|
||||
* of this software will be governed by version 2 or later of the General
|
||||
* Public License.
|
||||
*/
|
||||
|
||||
#define MXS_MODULE_NAME "hintfilter"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <maxscale/filter.h>
|
||||
#include <maxscale/alloc.h>
|
||||
|
@ -10,6 +10,9 @@
|
||||
* of this software will be governed by version 2 or later of the General
|
||||
* Public License.
|
||||
*/
|
||||
|
||||
#define MXS_MODULE_NAME "hintfilter"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <ctype.h>
|
||||
#include <string.h>
|
||||
|
@ -11,6 +11,8 @@
|
||||
* Public License.
|
||||
*/
|
||||
|
||||
#define MXS_MODULE_NAME "insertstream"
|
||||
|
||||
#include <maxscale/cdefs.h>
|
||||
|
||||
#include <strings.h>
|
||||
|
@ -36,6 +36,8 @@
|
||||
* or diagnostic being made for the session script.
|
||||
*/
|
||||
|
||||
#define MXS_MODULE_NAME "luafilter"
|
||||
|
||||
#include <maxscale/cdefs.h>
|
||||
#include <lauxlib.h>
|
||||
#include <lua.h>
|
||||
|
@ -56,6 +56,9 @@
|
||||
*@endverbatim
|
||||
* See the individual struct documentations for logging trigger parameters
|
||||
*/
|
||||
|
||||
#define MXS_MODULE_NAME "mqfilter"
|
||||
|
||||
#include <my_config.h>
|
||||
#include <stdio.h>
|
||||
#include <fcntl.h>
|
||||
|
@ -11,6 +11,8 @@
|
||||
* Public License.
|
||||
*/
|
||||
|
||||
#define MXS_MODULE_NAME "namedserverfilter"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <maxscale/alloc.h>
|
||||
#include <maxscale/filter.h>
|
||||
|
@ -34,6 +34,8 @@
|
||||
* @endverbatim
|
||||
*/
|
||||
|
||||
#define MXS_MODULE_NAME "qlafilter"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <fcntl.h>
|
||||
#include <errno.h>
|
||||
|
@ -11,6 +11,8 @@
|
||||
* Public License.
|
||||
*/
|
||||
|
||||
#define MXS_MODULE_NAME "regexfilter"
|
||||
|
||||
#include <maxscale/cdefs.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
|
@ -41,6 +41,8 @@
|
||||
* @endverbatim
|
||||
*/
|
||||
|
||||
#define MXS_MODULE_NAME "tee"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <fcntl.h>
|
||||
#include <maxscale/filter.h>
|
||||
|
@ -32,6 +32,8 @@
|
||||
* @endverbatim
|
||||
*/
|
||||
|
||||
#define MXS_MODULE_NAME "topfilter"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <fcntl.h>
|
||||
#include <maxscale/filter.h>
|
||||
|
@ -40,6 +40,8 @@
|
||||
* @endverbatim
|
||||
*/
|
||||
|
||||
#define MXS_MODULE_NAME "tpmfilter"
|
||||
|
||||
#include <maxscale/cdefs.h>
|
||||
|
||||
#include <ctype.h>
|
||||
|
Reference in New Issue
Block a user