Skip to content

Commit 9575a99

Browse files
authored
Merge pull request #673 from rnadigital/feat/log-levels
Update LOG_LEVEL environment variable handling to ensure a default value is set correctly
2 parents a9678be + faedd98 commit 9575a99

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

agent-backend/src/init/env_variables.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
QDRANT_API_KEY = os.getenv("QDRANT_API_KEY")
2323
REDIS_HOST = os.getenv("REDIS_HOST")
2424
REDIS_PORT = 6379
25-
LOG_LEVEL = os.getenv("LOG_LEVEL", "INFO")
25+
LOG_LEVEL = os.getenv("LOG_LEVEL", "INFO") or "INFO"
2626
GOOGLE_FUNCTION_LOCATION = os.getenv("GOOGLE_FUNCTION_LOCATION", "us-central1")
2727
PROJECT_ID = os.getenv("PROJECT_ID")
2828
GCS_BUCKET_NAME = os.getenv("GCS_BUCKET_NAME")
@@ -32,6 +32,7 @@
3232
VECTOR_DATABASE = os.getenv("VECTOR_DATABASE", VectorDatabase.Qdrant)
3333
HOSTED_PINECONE_API_KEY = os.getenv("HOSTED_PINECONE_API_KEY")
3434

35+
3536
def _set_max_threads() -> int:
3637
try:
3738
initial_threads = threading.active_count()

0 commit comments

Comments
 (0)