or_barda
02/20/2022, 8:43 PM[2022-02-20, 19:22:29 UTC] {docker.py:276} INFO - [2m2022-02-20T19:22:29.777374Z[0m [[32m[1minfo [0m] [1mFound state from 2022-02-20 16:20:25.700178.[0m
Can someone help me resolve it and make it back to the normal format?aaronsteers
02/21/2022, 6:11 PMor_barda
02/21/2022, 6:21 PMpaul_tiplady
02/22/2022, 5:49 PMcolors: False
and that should get rid of (some of?) the control characters.
I do think this is a bug though - colors should be either opt-in or only if you have a TTY attached, rather than always on. It does seem like structlog is supposed to detect TTY if you don’t say force_colors
, but this isn’t happening for me either. Maybe the problem is that the dev.ConsoleRenderer
is being used by default, which is in the structlog development tools package, and it’s making someor_barda
02/22/2022, 6:37 PM