From 22445e5a1ca52dd639893d110c343b2fcb6adeb3 Mon Sep 17 00:00:00 2001 From: Sergey Vasilyev Date: Sun, 15 Oct 2023 23:20:29 +0200 Subject: [PATCH] Specify an explicit (non-auto) value for log-formatting enum for Python 3.13 compatibility Signed-off-by: Sergey Vasilyev --- kopf/_core/actions/loggers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kopf/_core/actions/loggers.py b/kopf/_core/actions/loggers.py index 0e40efb5..411151a4 100644 --- a/kopf/_core/actions/loggers.py +++ b/kopf/_core/actions/loggers.py @@ -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):