Actually use a log file for build-packages
This commit is contained in:
parent
25a4192c07
commit
86f5d81d63
@ -37,6 +37,8 @@ os.makedirs(LOG_DIR, exist_ok=True)
|
|||||||
os.makedirs(OUTPUT_DIR, exist_ok=True)
|
os.makedirs(OUTPUT_DIR, exist_ok=True)
|
||||||
os.makedirs(BASE_LINTIAN_DIR, exist_ok=True)
|
os.makedirs(BASE_LINTIAN_DIR, exist_ok=True)
|
||||||
|
|
||||||
|
current_time = datetime.utcnow().strftime("%H-%M-%S")
|
||||||
|
log_file = os.path.join(LOG_DIR, f"{current_time}.log")
|
||||||
logging.basicConfig(
|
logging.basicConfig(
|
||||||
level=logging.INFO,
|
level=logging.INFO,
|
||||||
format="%(asctime)s - %(levelname)s - %(message)s",
|
format="%(asctime)s - %(levelname)s - %(message)s",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user