Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Matrix
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Operate
Environments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Matrix
Commits
837d7f85
Commit
837d7f85
authored
6 years ago
by
Richard van der Hoff
Browse files
Options
Downloads
Patches
Plain Diff
more logging improvements
parent
fd8fb32b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
synapse/federation/federation_base.py
+11
-8
11 additions, 8 deletions
synapse/federation/federation_base.py
with
11 additions
and
8 deletions
synapse/federation/federation_base.py
+
11
−
8
View file @
837d7f85
...
...
@@ -270,13 +270,14 @@ def _check_sigs_on_pdus(keyring, room_version, pdus):
])
def
sender_err
(
e
,
pdu_to_check
):
logger
.
warning
(
"
event id %s: unable to verify signature for sender %s: %s
"
,
errmsg
=
"
event id %s: unable to verify signature for sender %s: %s
"
%
(
pdu_to_check
.
pdu
.
event_id
,
pdu_to_check
.
sender_domain
,
e
.
getErrorMessage
(),
)
return
e
# XX not really sure if these are the right codes, but they are what
# we've done for ages
raise
SynapseError
(
400
,
errmsg
,
Codes
.
UNAUTHORIZED
)
for
p
,
d
in
zip
(
pdus_to_check_sender
,
more_deferreds
):
d
.
addErrback
(
sender_err
,
p
)
...
...
@@ -302,12 +303,14 @@ def _check_sigs_on_pdus(keyring, room_version, pdus):
])
def
event_err
(
e
,
pdu_to_check
):
logger
.
warning
(
"
event id %s: unable to verify signature for event id domain: %s
"
,
pdu_to_check
.
pdu
.
event_id
,
e
.
getErrorMessage
(),
errmsg
=
(
"
event id %s: unable to verify signature for event id domain: %s
"
%
(
pdu_to_check
.
pdu
.
event_id
,
e
.
getErrorMessage
(),
)
)
return
e
# XX as above: not really sure if these are the right codes
raise
SynapseError
(
400
,
errmsg
,
Codes
.
UNAUTHORIZED
)
for
p
,
d
in
zip
(
pdus_to_check_event_id
,
more_deferreds
):
d
.
addErrback
(
event_err
,
p
)
...
...
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