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:
parent
eb97c92239
commit
b67323151f
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue