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
Commits
55101504
Commit
55101504
authored
1 year ago
by
Hans Fangohr
Browse files
Options
Downloads
Patches
Plain Diff
simplify date format in log file
- full date is in file name - can just use the time in here (could also remove that)
parent
0f73ea2c
No related branches found
No related tags found
1 merge request
!30
Print log
Pipeline
#369880
passed
1 year ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mpsd-software-environment.py
+2
-2
2 additions, 2 deletions
mpsd-software-environment.py
with
2 additions
and
2 deletions
mpsd-software-environment.py
+
2
−
2
View file @
55101504
...
...
@@ -131,7 +131,7 @@ def set_up_logging(loglevel="warning", filename=None):
if
filename
:
file_handler
=
logging
.
FileHandler
(
filename
)
file_logging_format
=
"
%(asctime)s %(levelname)7s %(lineno)4d | %(message)s
"
file_formatter
=
logging
.
Formatter
(
file_logging_format
)
file_formatter
=
logging
.
Formatter
(
file_logging_format
,
datefmt
=
"
[%X]
"
)
file_handler
.
setFormatter
(
file_formatter
)
logger
.
addHandler
(
file_handler
)
...
...
@@ -704,7 +704,7 @@ def main():
args
=
parser
.
parse_args
()
# parse logging first
set_up_logging
(
args
.
loglevel
)
set_up_logging
(
args
.
loglevel
,
filename
=
"
test.log
"
)
# target dir is the place where this script exists. the
# release `dev` in script_dir/dev-23a
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment