fix: use MODEL_LOG env var instead of hardcoded onstart.log to prevent log scanner feedback loop

This commit is contained in:
Mikhail Yevchenko
2026-07-23 22:18:16 +03:00
parent a666d56c15
commit 3a7f02acba
+1 -1
View File
@@ -10,7 +10,7 @@ logging.getLogger().setLevel(logging.WARNING) # Only show warnings and errors
# Ollama model configuration
MODEL_SERVER_URL = 'http://127.0.0.1'
MODEL_SERVER_PORT = 11434
MODEL_LOG_FILE = '/var/log/onstart.log'
MODEL_LOG_FILE = os.environ.get('MODEL_LOG', '/var/log/ollama.log')
MODEL_HEALTHCHECK_ENDPOINT = "/"
# Ollama-specific log messages