mirror of
https://github.com/kernelkit/infix.git
synced 2026-08-02 13:53:01 +02:00
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:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user