Skip to content

Commit

Permalink
Specify an explicit (non-auto) value for log-formatting enum for Pyth…
Browse files Browse the repository at this point in the history
…on 3.13 compatibility

Signed-off-by: Sergey Vasilyev <[email protected]>
  • Loading branch information
nolar committed Oct 15, 2023
1 parent fa81d2f commit 22445e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kopf/_core/actions/loggers.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class LogFormat(enum.Enum):
""" Log formats, as specified on CLI. """
PLAIN = '%(message)s'
FULL = '[%(asctime)s] %(name)-20.20s [%(levelname)-8.8s] %(message)s'
JSON = enum.auto()
JSON = '-json-' # not used for formatting, only for detection


class ObjectFormatter(logging.Formatter):
Expand Down

0 comments on commit 22445e5

Please sign in to comment.