Skip to content

Commit 8cfdd63

Browse files
authored
Merge pull request #500 from Fyve-Labs/hotfix/definition_missing
fix(undefined-const): hotfix for missing constants
2 parents b82442e + ef52d54 commit 8cfdd63

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

config.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import os
2-
2+
import logging
33
####################################
44
# Load .env file
55
####################################
@@ -11,5 +11,14 @@
1111
except ImportError:
1212
print("dotenv not installed, skipping...")
1313

14+
# Define log levels dictionary
15+
LOG_LEVELS = {
16+
'DEBUG': logging.DEBUG,
17+
'INFO': logging.INFO,
18+
'WARNING': logging.WARNING,
19+
'ERROR': logging.ERROR,
20+
'CRITICAL': logging.CRITICAL
21+
}
22+
1423
API_KEY = os.getenv("PIPELINES_API_KEY", "0p3n-w3bu!")
1524
PIPELINES_DIR = os.getenv("PIPELINES_DIR", "./pipelines")

main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
import subprocess
3030

3131

32-
from config import API_KEY, PIPELINES_DIR
32+
from config import API_KEY, PIPELINES_DIR, LOG_LEVELS
3333

3434
if not os.path.exists(PIPELINES_DIR):
3535
os.makedirs(PIPELINES_DIR)

0 commit comments

Comments
 (0)