1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

path: create unique logger names

This commit is contained in:
Manuel Pitz 2021-06-23 20:06:58 +02:00
parent eb97c92239
commit b67323151f

View file

@ -138,7 +138,9 @@ int path_init(struct vpath *p)
new (&p->mask) std::bitset<MAX_SAMPLE_LENGTH>;
new (&p->timeout) Task(CLOCK_MONOTONIC);
p->logger = logging.get("path");
static int path_id;
auto logger_name = fmt::format("path:{}", path_id++);
p->logger = logging.get(logger_name);
uuid_clear(p->uuid);