Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
force-bdss
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
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
Adham Hashibon
force-bdss
Commits
e17374d5
Commit
e17374d5
authored
6 years ago
by
Stefano Borini
Browse files
Options
Downloads
Patches
Plain Diff
Review
parent
0dccd4ba
No related branches found
No related tags found
1 merge request
!108
Introduced log file option
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
force_bdss/bdss_application.py
+2
-2
2 additions, 2 deletions
force_bdss/bdss_application.py
force_bdss/io/workflow_reader.py
+1
-1
1 addition, 1 deletion
force_bdss/io/workflow_reader.py
force_bdss/tests/test_bdss_application.py
+0
-1
0 additions, 1 deletion
force_bdss/tests/test_bdss_application.py
with
3 additions
and
4 deletions
force_bdss/bdss_application.py
+
2
−
2
View file @
e17374d5
...
@@ -69,6 +69,6 @@ def _load_failure_callback(plugins, manager, entry_point, exception):
...
@@ -69,6 +69,6 @@ def _load_failure_callback(plugins, manager, entry_point, exception):
"""
"""
log
.
error
(
log
.
error
(
"
Unable to load plugin {}. Exception: {}. Message: {}
"
.
format
(
"
Unable to load plugin {}. Exception: {}. Message: {}
"
.
format
(
entry_point
,
exception
.
__class__
.
__name__
,
exception
)
entry_point
,
exception
.
__class__
.
__name__
,
exception
),
exc_info
=
True
,
)
)
log
.
exception
(
exception
)
This diff is collapsed.
Click to expand it.
force_bdss/io/workflow_reader.py
+
1
−
1
View file @
e17374d5
...
@@ -94,7 +94,7 @@ class WorkflowReader(HasStrictTraits):
...
@@ -94,7 +94,7 @@ class WorkflowReader(HasStrictTraits):
wf
.
notification_listeners
[:]
=
\
wf
.
notification_listeners
[:]
=
\
self
.
_extract_notification_listeners
(
wf_data
)
self
.
_extract_notification_listeners
(
wf_data
)
except
KeyError
as
e
:
except
KeyError
as
e
:
log
.
e
xception
(
"
Could not read file {}
"
.
format
(
file
))
log
.
e
rror
(
"
Could not read file {}
"
.
format
(
file
)
,
exc_info
=
True
)
raise
InvalidFileException
(
"
Could not read file {}.
"
raise
InvalidFileException
(
"
Could not read file {}.
"
"
Unable to find key {}
"
.
format
(
file
,
e
))
"
Unable to find key {}
"
.
format
(
file
,
e
))
return
wf
return
wf
...
...
This diff is collapsed.
Click to expand it.
force_bdss/tests/test_bdss_application.py
+
0
−
1
View file @
e17374d5
...
@@ -36,7 +36,6 @@ class TestBDSSApplication(unittest.TestCase):
...
@@ -36,7 +36,6 @@ class TestBDSSApplication(unittest.TestCase):
'
ERROR
'
,
'
ERROR
'
,
"
Unable to load plugin foo. Exception:
"
"
Unable to load plugin foo. Exception:
"
"
Exception. Message: hello
"
),
"
Exception. Message: hello
"
),
(
'
force_bdss.bdss_application
'
,
'
ERROR
'
,
'
hello
'
)
)
)
self
.
assertEqual
(
plugins
,
[])
self
.
assertEqual
(
plugins
,
[])
...
...
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