[master] Colored logging is not working in emulator #49

Closed
opened 2021-11-20 11:25:10 +00:00 by ungleich-gitea · 5 comments

@ssrq When moving USE_COLORS from formatter into DefaultLog in https://code.ungleich.ch/ungleich-public/cdist/-/merge_requests/887/diffs
it happens now that emulator logging, e.g. flock logging is not colored although USE_COLORS is True.
This is because there are loggers instantiated at module level before USE_COLORS is set.
There is also a bug in emulator code where USE_COLORS is set to formatter class, althoug it is moved to DefaultLog class.

Can you fix this?

@ssrq When moving `USE_COLORS` from formatter into DefaultLog in https://code.ungleich.ch/ungleich-public/cdist/-/merge_requests/887/diffs it happens now that emulator logging, e.g. flock logging is not colored although USE_COLORS is True. This is because there are loggers instantiated at module level before USE_COLORS is set. There is also a bug in emulator code where USE_COLORS is set to formatter class, althoug it is moved to DefaultLog class. Can you fix this?
poljakowski was assigned by ungleich-gitea 2021-11-20 11:25:11 +00:00
Author
Owner

closed

closed
Author
Owner

Fixed in 840e417eb7.

Fixed in https://code.ungleich.ch/ungleich-public/cdist/-/commit/840e417eb79c7135762d3353f34a3f8330cb0e84.
Author
Owner

@ssrq I'll handle this.

@ssrq I'll handle this.
Author
Owner

assigned to @poljakowski

assigned to @poljakowski
Author
Owner

@ssrq Visible with $ cdist config -S -vvv....

@ssrq Visible with `$ cdist config -S -vvv...`.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: ungleich-public/cdist#49
No description provided.