Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
genotoul-bioinfo
jflow
Commits
425a3025
Commit
425a3025
authored
Apr 21, 2017
by
Floreal Cabanettes
Browse files
Add debug mode
parent
ea439a4b
Changes
3
Hide whitespace changes
Inline
Side-by-side
application.properties.example
View file @
425a3025
...
@@ -30,6 +30,8 @@ server_socket_host = 127.0.0.1
...
@@ -30,6 +30,8 @@ server_socket_host = 127.0.0.1
server_socket_port = 8080
server_socket_port = 8080
# date format
# date format
date_format = %d/%m/%Y
date_format = %d/%m/%Y
# debug
debug = False
[email]
[email]
# if you want an email to be sent at the end of the workflow execution
# if you want an email to be sent at the end of the workflow execution
...
...
src/jflow/config_reader.py
View file @
425a3025
...
@@ -133,3 +133,9 @@ class JFlowConfigReader(object):
...
@@ -133,3 +133,9 @@ class JFlowConfigReader(object):
def
get_browse_root_dir
(
self
):
def
get_browse_root_dir
(
self
):
return
self
.
reader
.
get
(
"storage"
,
"browse_root_dir"
)
return
self
.
reader
.
get
(
"storage"
,
"browse_root_dir"
)
def
get_debug
(
self
):
try
:
return
self
.
reader
.
get
(
"global"
,
"debug"
)
==
"True"
except
NoOptionError
:
return
False
src/jflow/workflow.py
View file @
425a3025
...
@@ -951,7 +951,10 @@ class Workflow(threading.Thread):
...
@@ -951,7 +951,10 @@ class Workflow(threading.Thread):
if
self
.
__step
is
not
None
:
if
self
.
__step
is
not
None
:
self
.
_serialize
()
self
.
_serialize
()
self
.
_log
(
str
(
e
),
traceback
=
traceback
.
format_exc
(
chain
=
False
))
self
.
_log
(
str
(
e
),
traceback
=
traceback
.
format_exc
(
chain
=
False
))
if
self
.
jflow_config_reader
.
get_debug
():
print
(
traceback
.
format_exc
(
chain
=
True
),
file
=
sys
.
stderr
)
utils
.
display_error_message
(
str
(
e
))
utils
.
display_error_message
(
str
(
e
))
finally
:
finally
:
if
self
.
__step
is
not
None
:
if
self
.
__step
is
not
None
:
self
.
_send_email
()
self
.
_send_email
()
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment