Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pikatasks
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
django
pikatasks
Commits
e79b1ab2
Commit
e79b1ab2
authored
6 years ago
by
Art
Browse files
Options
Downloads
Patches
Plain Diff
Return back multiline exception logging
parent
5b6ba1c6
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
pikatasks/__init__.py
+1
-1
1 addition, 1 deletion
pikatasks/__init__.py
with
1 addition
and
1 deletion
pikatasks/__init__.py
+
1
−
1
View file @
e79b1ab2
...
@@ -164,7 +164,7 @@ def task(name):
...
@@ -164,7 +164,7 @@ def task(name):
func_result
=
func
(
**
task_kwargs
)
func_result
=
func
(
**
task_kwargs
)
except
Exception
as
e
:
except
Exception
as
e
:
e_class
=
e
.
__class__
.
__qualname__
e_class
=
e
.
__class__
.
__qualname__
e_details
=
traceback
.
format_exc
()
.
replace
(
"
\n
"
,
"
--
"
)
e_details
=
traceback
.
format_exc
()
logger
.
error
(
"
Task {task_name} function raised {e_class}: {e}. {e_details}
"
.
format
(
**
locals
()))
logger
.
error
(
"
Task {task_name} function raised {e_class}: {e}. {e_details}
"
.
format
(
**
locals
()))
func_error
=
"
Task {task_name} raised {e_class} (see worker log for details).
"
.
format
(
**
locals
())
# sort of anonymized
func_error
=
"
Task {task_name} raised {e_class} (see worker log for details).
"
.
format
(
**
locals
())
# sort of anonymized
if
properties
.
reply_to
:
if
properties
.
reply_to
:
...
...
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