Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gajim
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
Model registry
Operate
Environments
Monitor
Incidents
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
eta
gajim
Commits
a218864d
Commit
a218864d
authored
7 years ago
by
Philipp Hörist
Browse files
Options
Downloads
Patches
Plain Diff
Add stanza to log output in case of an error
parent
c6172c86
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
gajim/common/connection_handlers_events.py
+7
-0
7 additions, 0 deletions
gajim/common/connection_handlers_events.py
with
7 additions
and
0 deletions
gajim/common/connection_handlers_events.py
+
7
−
0
View file @
a218864d
...
...
@@ -1080,12 +1080,14 @@ class MamMessageReceivedEvent(nec.NetworkIncomingEvent, HelperEvent):
'
delay
'
,
'
stamp
'
,
namespace
=
nbxmpp
.
NS_DELAY2
)
if
delay
is
None
:
log
.
error
(
'
Received MAM message without timestamp
'
)
log
.
error
(
self
.
stanza
)
return
self
.
timestamp
=
helpers
.
parse_datetime
(
delay
,
check_utc
=
True
,
epoch
=
True
)
if
self
.
timestamp
is
None
:
log
.
error
(
'
Received MAM message with invalid timestamp: %s
'
,
delay
)
log
.
error
(
self
.
stanza
)
return
# Save timestamp added by the user
...
...
@@ -1097,6 +1099,7 @@ class MamMessageReceivedEvent(nec.NetworkIncomingEvent, HelperEvent):
if
self
.
user_timestamp
is
None
:
log
.
warning
(
'
Received MAM message with
'
'
invalid user timestamp: %s
'
,
user_delay
)
log
.
warning
(
self
.
stanza
)
log
.
debug
(
'
Received mam-message: unique id: %s
'
,
self
.
unique_id
)
return
True
...
...
@@ -1175,12 +1178,14 @@ class MamGcMessageReceivedEvent(nec.NetworkIncomingEvent, HelperEvent):
'
delay
'
,
'
stamp
'
,
namespace
=
nbxmpp
.
NS_DELAY2
)
if
delay
is
None
:
log
.
error
(
'
Received MAM message without timestamp
'
)
log
.
error
(
self
.
stanza
)
return
self
.
timestamp
=
helpers
.
parse_datetime
(
delay
,
check_utc
=
True
,
epoch
=
True
)
if
self
.
timestamp
is
None
:
log
.
error
(
'
Received MAM message with invalid timestamp: %s
'
,
delay
)
log
.
error
(
self
.
stanza
)
return
# Save timestamp added by the user
...
...
@@ -1192,6 +1197,7 @@ class MamGcMessageReceivedEvent(nec.NetworkIncomingEvent, HelperEvent):
if
self
.
user_timestamp
is
None
:
log
.
warning
(
'
Received MAM message with
'
'
invalid user timestamp: %s
'
,
user_delay
)
log
.
warning
(
self
.
stanza
)
log
.
debug
(
'
Received mam-gc-message: unique id: %s
'
,
self
.
unique_id
)
return
True
...
...
@@ -1227,6 +1233,7 @@ class MamDecryptedMessageReceivedEvent(nec.NetworkIncomingEvent, HelperEvent):
# run into an endless loop
if
hasattr
(
self
,
'
disco
'
):
log
.
error
(
'
JID not known even after sucessful disco
'
)
log
.
error
(
self
.
with_
.
getStripped
())
return
# we don't know this JID, we need to disco it.
server
=
self
.
with_
.
getDomain
()
...
...
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