mech: debug transactions

For observability. All transactions that reach ietf-system are logged
with LOG_DEBUG log level.  See /var/log/debug for details.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2023-03-16 06:37:56 +01:00
parent 17424a140f
commit fa45015140
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -5,4 +5,4 @@ backend_LTLIBRARIES += ietf-system.la
ietf_system_la_CFLAGS = $(backend_cflags)
ietf_system_la_LDFLAGS = $(backend_ldflags)
ietf_system_la_LIBADD = $(backend_libadd)
ietf_system_la_SOURCES = ietf-system.c
ietf_system_la_SOURCES = ietf-system.c $(top_srcdir)/src/core/common.h
+3 -3
View File
@@ -5,9 +5,7 @@
#include <stdio.h>
#include <unistd.h>
#include <cligen/cligen.h>
#include <clixon/clixon.h>
#include <clixon/clixon_backend.h>
#include "common.h"
static augeas *aug;
@@ -58,6 +56,8 @@ int ietf_sys_tr_commit(clicon_handle h, transaction_data td)
int slen = 0, tlen = 0, err = -EINVAL;
cxobj **ssys, **tsys;
show_transaction("ietf-system", td, true);
if (src && clixon_xml_find_instance_id(src, yspec, &ssys, &slen,
"/sys:system") < 0)
goto err;