cname host is logged twice #53
Labels
No labels
bugfix
cleanup
discussion
documentation
doing
done
feature
improvement
packaging
Stale
testing
TODO
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ungleich-public/cdist#53
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
only happens with addresses which are cnames. @poljakowski?
mentioned in commit
06cc20aa28closed via merge request !883
good work! thanks!
mentioned in merge request !883
mentioned in commit
f4e1bbc87e@ander Figured it out :) This has nothing to do with
CNAME, but withcdist.as first part of hostname.It's about logger hierarchy which is defined by dots in logger name.
https://docs.python.org/3/library/logging.html#module-logging
So we have
cdistlogger, created before target host processing.Then we process host
cdist.whatever. Logging creates logger hierarchy, which meanscdistlogger is parent of.whatever. Whencdist.whateverlogs something, this is also propagated to ancestors.There is one ancestor defined,
cdistlogger, so it too writes log message.That is why all are written twice.
For parallel part,
cdistancestor is defined without process ID in its format, so you have one line with process ID, and one line without it.Since we don't use hierarchy with propagation in its full potential, I will try fixing this bug with setting
propagatetoFalse.cnameconfig.log
If you give me your
id.pub, I can give you access for testing.@ander Do you have a trace log level output for cname case?
assigned to @poljakowski