Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
MLAir
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
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
esde
machine-learning
MLAir
Commits
459d9303
Commit
459d9303
authored
5 years ago
by
lukas leufen
Browse files
Options
Downloads
Patches
Plain Diff
logs now error message
parent
00acb7bd
No related branches found
No related tags found
3 merge requests
!90
WIP: new release update
,
!89
Resolve "release branch / CI on gpu"
,
!80
Resolve "improve run environment for error handling"
Pipeline
#32756
passed
5 years ago
Stage: test
Stage: pages
Stage: deploy
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/helpers.py
+2
-0
2 additions, 0 deletions
src/helpers.py
src/run_modules/run_environment.py
+2
-0
2 additions, 0 deletions
src/run_modules/run_environment.py
with
4 additions
and
0 deletions
src/helpers.py
+
2
−
0
View file @
459d9303
...
@@ -242,6 +242,8 @@ class Logger:
...
@@ -242,6 +242,8 @@ class Logger:
filemode
=
'
a
'
)
filemode
=
'
a
'
)
# add stream handler to the root logger
# add stream handler to the root logger
logging
.
getLogger
(
''
).
addHandler
(
self
.
logger_console
(
level_stream
))
logging
.
getLogger
(
''
).
addHandler
(
self
.
logger_console
(
level_stream
))
# print logger path
logging
.
info
(
f
"
File logger:
{
self
.
log_file
}
"
)
@staticmethod
@staticmethod
def
setup_logging_path
(
path
:
str
=
None
):
def
setup_logging_path
(
path
:
str
=
None
):
...
...
This diff is collapsed.
Click to expand it.
src/run_modules/run_environment.py
+
2
−
0
View file @
459d9303
...
@@ -50,6 +50,8 @@ class RunEnvironment(object):
...
@@ -50,6 +50,8 @@ class RunEnvironment(object):
return
self
return
self
def
__exit__
(
self
,
exc_type
,
exc_val
,
exc_tb
):
def
__exit__
(
self
,
exc_type
,
exc_val
,
exc_tb
):
if
exc_type
:
logging
.
error
(
exc_val
,
exc_info
=
(
exc_type
,
exc_val
,
exc_tb
))
self
.
__del__
()
self
.
__del__
()
@staticmethod
@staticmethod
...
...
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