mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
path: add separate loggers for path_source and path_destinations
This commit is contained in:
parent
7135174df9
commit
88045390cb
4 changed files with 10 additions and 1 deletions
|
@ -30,12 +30,15 @@
|
|||
#pragma once
|
||||
|
||||
#include <villas/queue.h>
|
||||
#include <villas/log.hpp>
|
||||
|
||||
/* Forward declarations */
|
||||
struct vpath;
|
||||
struct sample;
|
||||
|
||||
struct vpath_destination {
|
||||
villas::Logger logger;
|
||||
|
||||
struct vnode *node;
|
||||
struct vpath *path;
|
||||
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
|
||||
#include <villas/pool.h>
|
||||
#include <villas/list.h>
|
||||
#include <villas/log.hpp>
|
||||
|
||||
/* Forward declarations */
|
||||
struct vpath;
|
||||
|
@ -42,6 +43,8 @@ enum PathSourceType {
|
|||
};
|
||||
|
||||
struct vpath_source {
|
||||
Logger logger;
|
||||
|
||||
struct vnode *node;
|
||||
struct vpath *path;
|
||||
|
||||
|
|
|
@ -32,10 +32,11 @@ using namespace villas;
|
|||
|
||||
int path_destination_init(struct vpath_destination *pd, struct vpath *p, struct vnode *n)
|
||||
{
|
||||
new (&pd->logger) Logger(logging.get("path:out"));
|
||||
|
||||
pd->node = n;
|
||||
pd->path = p;
|
||||
|
||||
|
||||
vlist_push(&n->destinations, pd);
|
||||
|
||||
return 0;
|
||||
|
|
|
@ -40,6 +40,8 @@ int path_source_init_master(struct vpath_source *ps, struct vpath *p, struct vno
|
|||
{
|
||||
int ret;
|
||||
|
||||
new (&pd->logger) Logger(logging.get("path:in"));
|
||||
|
||||
ps->node = n;
|
||||
ps->path = p;
|
||||
ps->masked = false;
|
||||
|
|
Loading…
Add table
Reference in a new issue