From 2d7bf2371f388ded378d26651f8eba37fae4fef7 Mon Sep 17 00:00:00 2001 From: Max Kutschka <2004maximilian@web.de> Date: Wed, 11 Dec 2024 17:25:37 +0100 Subject: [PATCH] static log level test --- setup.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 017dc39a..7e5664d6 100755 --- a/setup.py +++ b/setup.py @@ -27,6 +27,9 @@ metricq_package_dir = "metricq" protobuf_version_module_file = "_protobuf_version.py" +INFO = 2 +ERROR = 4 + class ProtocWrapper: @staticmethod @@ -224,10 +227,10 @@ def finalize_options(self) -> None: self.proto_dir = "lib/metricq-protobuf/" def info(self, msg: str) -> None: - self.announce(f"info: {type(self).__name__}: {msg}", level=logging.INFO) + self.announce(f"info: {type(self).__name__}: {msg}", level=INFO) def error(self, msg: str) -> None: - self.announce(f"error: {type(self).__name__}: {msg}", level=logging.ERROR) + self.announce(f"error: {type(self).__name__}: {msg}", level=ERROR) @property def _protobuf_filenames(self) -> Iterable[str]: