File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 11import os
2-
2+ import logging
33####################################
44# Load .env file
55####################################
1111except 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+
1423API_KEY = os .getenv ("PIPELINES_API_KEY" , "0p3n-w3bu!" )
1524PIPELINES_DIR = os .getenv ("PIPELINES_DIR" , "./pipelines" )
Original file line number Diff line number Diff line change 2929import subprocess
3030
3131
32- from config import API_KEY , PIPELINES_DIR
32+ from config import API_KEY , PIPELINES_DIR , LOG_LEVELS
3333
3434if not os .path .exists (PIPELINES_DIR ):
3535 os .makedirs (PIPELINES_DIR )
You can’t perform that action at this time.
0 commit comments