Skip to content
Snippets Groups Projects
Commit cf0f8dd6 authored by Ashwin Kumar Karnad's avatar Ashwin Kumar Karnad
Browse files

swap path check and command check while deciding the inst_log name

parent 2bdf0df3
No related branches found
No related tags found
1 merge request!29Restructure log location
Pipeline #370054 passed
......@@ -899,12 +899,12 @@ def main():
log_folder = script_dir / mpsd_release / mpsd_microarch / "logs"
# if the log_folder dosent exist, dont log this message if
# the command is a info-only command
if not os.path.exists(log_folder):
if args.action not in ["status", "available"]:
if args.action not in ["status", "available"]:
if not os.path.exists(log_folder):
os.makedirs(log_folder)
installer_log_file = log_folder / installer_log_name
else:
installer_log_file = None
installer_log_file = log_folder / installer_log_name
else:
installer_log_file = None
set_up_logging(args.loglevel, installer_log_file)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment