Skip to content

Commit

Permalink
tmp: enable debug flags
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Hopps <[email protected]>
  • Loading branch information
choppsv1 committed Sep 26, 2023
1 parent 3784d5b commit 02a85ab
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
5 changes: 4 additions & 1 deletion lib/mgmt_be_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,10 @@ struct mgmt_be_client {
#define FOREACH_BE_TXN_IN_LIST(client_ctx, txn) \
frr_each_safe (mgmt_be_txns, &(client_ctx)->txn_head, (txn))

struct debug mgmt_dbg_be_client = {0, "Management backend client operations"};
struct debug mgmt_dbg_be_client = {
.flags = DEBUG_MODE_ALL,
.desc = "Management frontend client operations"
};

const char *mgmt_be_client_names[MGMTD_BE_CLIENT_ID_MAX + 1] = {
#ifdef HAVE_STATICD
Expand Down
4 changes: 3 additions & 1 deletion lib/mgmt_fe_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ struct mgmt_fe_client {
#define FOREACH_SESSION_IN_LIST(client, session) \
frr_each_safe (mgmt_sessions, &(client)->sessions, (session))

struct debug mgmt_dbg_fe_client = {0, "Management frontend client operations"};
struct debug mgmt_dbg_fe_client = {
.flags = DEBUG_MODE_ALL,
.desc = "Management frontend client operations"};


static inline const char *dsid2name(Mgmtd__DatastoreId id)
Expand Down
12 changes: 8 additions & 4 deletions mgmtd/mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,14 @@
#include "mgmtd/mgmt_history.h"
#include "mgmtd/mgmt_memory.h"

struct debug mgmt_debug_be = {.desc = "Management backend adapater"};
struct debug mgmt_debug_ds = {.desc = "Management datastore"};
struct debug mgmt_debug_fe = {.desc = "Management frontend adapater"};
struct debug mgmt_debug_txn = {.desc = "Management transaction"};
struct debug mgmt_debug_be = {.flags = DEBUG_MODE_ALL,
.desc = "Management backend adapater"};
struct debug mgmt_debug_ds = {.flags = DEBUG_MODE_ALL,
.desc = "Management datastore"};
struct debug mgmt_debug_fe = {.flags = DEBUG_MODE_ALL,
.desc = "Management frontend adapater"};
struct debug mgmt_debug_txn = {.flags = DEBUG_MODE_ALL,
.desc = "Management transaction"};

/* MGMTD process wide configuration. */
static struct mgmt_master mgmt_master;
Expand Down

0 comments on commit 02a85ab

Please sign in to comment.