From 619994c81e24296491b7b39687a6163b75944c31 Mon Sep 17 00:00:00 2001 From: Lutchy Horace Date: Wed, 2 Apr 2025 12:05:51 -0400 Subject: [PATCH] Need to always set LOG_FILE for the checks to work properly --- minio_quota_checker.py | 1 + 1 file changed, 1 insertion(+) diff --git a/minio_quota_checker.py b/minio_quota_checker.py index 80f4d82..ee035bb 100644 --- a/minio_quota_checker.py +++ b/minio_quota_checker.py @@ -61,6 +61,7 @@ redis_client = redis.Redis( # Set up logging +LOG_FILE = os.getenv("LOG_FILE", CONFIG.get("LOG_FILE")) handlers = [logging.StreamHandler()] # Always log to stdout if LOG_FILE and LOG_FILE.strip(): # Log to file only if LOG_FILE is set and not empty handlers.append(logging.FileHandler(LOG_FILE))