Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mpsd-software-manager
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MPSD Computational Science
mpsd-software-manager
Merge requests
!29
Restructure log location
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Restructure log location
restructure-log-location
into
main
Overview
2
Commits
48
Pipelines
20
Changes
1
Merged
Ashwin Kumar Karnad
requested to merge
restructure-log-location
into
main
1 year ago
Overview
2
Commits
48
Pipelines
20
Changes
1
Expand
Resolves
#7 (closed)
0
0
Merge request reports
Viewing commit
cf0f8dd6
Prev
Next
Show latest version
1 file
+
5
−
5
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
cf0f8dd6
swap path check and command check while deciding the inst_log name
· cf0f8dd6
Ashwin Kumar Karnad
authored
1 year ago
mpsd-software-environment.py
+
5
−
5
Options
@@ -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
)
Loading