mirror of
https://git.proxmox.com/git/mirror_corosync
synced 2025-08-06 06:43:27 +00:00
LOG: add libqb as a "subsys"
So we can see libqb internal logs Signed-off-by: Angus Salkeld <asalkeld@redhat.com> Reviewed-by: Steven Dake <sdake@redhat.com>
This commit is contained in:
parent
546aea23cf
commit
8992acb815
@ -112,6 +112,7 @@ static pthread_mutex_t logsys_config_mutex = PTHREAD_MUTEX_INITIALIZER;
|
||||
static int32_t _logsys_config_mode_set_unlocked(int32_t subsysid, uint32_t new_mode);
|
||||
static void _logsys_config_apply_per_file(int32_t s, const char *filename);
|
||||
static void _logsys_config_apply_per_subsys(int32_t s);
|
||||
static void _logsys_subsys_filename_add (int32_t s, const char *filename);
|
||||
|
||||
static char *format_buffer=NULL;
|
||||
|
||||
@ -275,6 +276,15 @@ int _logsys_system_setup(
|
||||
(strlen(mainsystem) >= LOGSYS_MAX_SUBSYS_NAMELEN)) {
|
||||
return -1;
|
||||
}
|
||||
/*
|
||||
* Setup libqb as a subsys
|
||||
*/
|
||||
i = _logsys_subsys_create ("QB", "loop");
|
||||
_logsys_subsys_filename_add (i, "ipc");
|
||||
_logsys_subsys_filename_add (i, "log");
|
||||
_logsys_subsys_filename_add (i, "trie.c");
|
||||
_logsys_subsys_filename_add (i, "map.c");
|
||||
_logsys_subsys_filename_add (i, "ringbuffer");
|
||||
|
||||
i = LOGSYS_MAX_SUBSYS_COUNT;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user