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
Michel Le Bihan
gajim
Commits
5aa9741e
Verified
Commit
5aa9741e
authored
1 year ago
by
Philipp Hörist
Browse files
Options
Downloads
Patches
Plain Diff
new: Attach omemo-dr logging to verbose mode
parent
e55dcd4b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
gajim/common/logging_helpers.py
+7
-0
7 additions, 0 deletions
gajim/common/logging_helpers.py
gajim/common/modules/omemo.py
+1
-1
1 addition, 1 deletion
gajim/common/modules/omemo.py
with
8 additions
and
1 deletion
gajim/common/logging_helpers.py
+
7
−
0
View file @
5aa9741e
...
...
@@ -176,6 +176,11 @@ def init() -> None:
root_log
.
addHandler
(
consoleloghandler
)
root_log
.
propagate
=
False
root_log
=
logging
.
getLogger
(
'
omemo_dr
'
)
root_log
.
setLevel
(
logging
.
WARNING
)
root_log
.
addHandler
(
consoleloghandler
)
root_log
.
propagate
=
False
# GAJIM_DEBUG is set only on Windows when using Gajim-Debug.exe
# Gajim-Debug.exe shows a command line prompt and we want to redirect
# log output to it
...
...
@@ -190,11 +195,13 @@ def set_loglevels(loglevels_string: str) -> None:
def
set_verbose
()
->
None
:
parseAndSetLogLevels
(
'
gajim=DEBUG
'
)
parseAndSetLogLevels
(
'
.nbxmpp=INFO
'
)
parseAndSetLogLevels
(
'
.omemo_dr=DEBUG
'
)
def
set_quiet
()
->
None
:
parseAndSetLogLevels
(
'
gajim=CRITICAL
'
)
parseAndSetLogLevels
(
'
.nbxmpp=CRITICAL
'
)
parseAndSetLogLevels
(
'
.omemo_dr=CRITICAL
'
)
def
_redirect_output
()
->
None
:
...
...
This diff is collapsed.
Click to expand it.
gajim/common/modules/omemo.py
+
1
−
1
View file @
5aa9741e
...
...
@@ -139,7 +139,7 @@ class OMEMO(BaseModule):
unacknowledged_count
=
2000
)
self
.
_backend
=
OMEMOSessionManager
(
self
.
_own_jid
,
storage
,
omemo_config
)
self
.
_own_jid
,
storage
,
omemo_config
,
self
.
_account
)
self
.
_backend
.
register_signal
(
'
republish-bundle
'
,
self
.
_on_republish_bundle
)
...
...
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