Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
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
RadioObservatory
LOFAR
Commits
cbb0e83c
Commit
cbb0e83c
authored
1 year ago
by
Jorrit Schaap
Browse files
Options
Downloads
Patches
Plain Diff
SDCH-4144
: exception logging to find the root cause of the problem
parent
37706f7b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
SAS/TMSS/backend/services/feedback_handling/lib/feedback_handling.py
+1
-1
1 addition, 1 deletion
...ckend/services/feedback_handling/lib/feedback_handling.py
with
1 addition
and
1 deletion
SAS/TMSS/backend/services/feedback_handling/lib/feedback_handling.py
+
1
−
1
View file @
cbb0e83c
...
...
@@ -57,7 +57,7 @@ def read_feedback_message_and_process(old_qpid_frombuses, timeout: float=1):
logger
.
info
(
"
received message from qpid queue=
'
%s
'"
,
old_qpid_frombus
.
receiver
.
source
.
address
)
except
AttributeError
as
e
:
# log errors from the parsing the qpid messages, see https://support.astron.nl/jira/projects/SDCH/queues/custom/81/SDCH-4144
logger
.
exception
(
"
%s\mignoring unprocessable message with body:
\n
%s
"
,
str
(
e
),
str
(
msg
.
body
))
logger
.
exception
(
"
%s\mignoring unprocessable message with body:
\n
%s
\n
%s
\n
"
,
str
(
e
),
str
(
msg
),
dir
(
msg
),
repr
(
msg
))
finally
:
# always ack (even when the above AttributeError occurs), so we can continue with the next message
old_qpid_frombus
.
ack
(
msg
)
...
...
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