Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
gajim
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
196
Issues
196
List
Boards
Labels
Service Desk
Milestones
Merge Requests
21
Merge Requests
21
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gajim
gajim
Commits
2377427b
Commit
2377427b
authored
Jan 10, 2021
by
Philipp Hörist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add --gdebug option
Sets the G_MESSAGES_DEBUG env var so GLib debug messages are printed
parent
6b53f794
Pipeline
#7093
failed with stages
in 9 minutes and 7 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
gajim/application.py
gajim/application.py
+11
-0
No files found.
gajim/application.py
View file @
2377427b
...
...
@@ -33,6 +33,7 @@
# You should have received a copy of the GNU General Public License
# along with Gajim. If not, see <http://www.gnu.org/licenses/>.
import
os
import
time
import
sys
from
datetime
import
datetime
...
...
@@ -140,6 +141,13 @@ def __init__(self):
GLib
.
OptionArg
.
NONE
,
_
(
'Open IPython shell'
))
self
.
add_main_option
(
'gdebug'
,
0
,
GLib
.
OptionFlags
.
NONE
,
GLib
.
OptionArg
.
NONE
,
_
(
'Sets an enviroment variable so GLib debug messages are printed'
))
self
.
add_main_option
(
'show-next-pending-event'
,
0
,
...
...
@@ -346,6 +354,9 @@ def _handle_local_options(self,
configpaths
.
init
()
if
options
.
contains
(
'gdebug'
):
os
.
environ
[
'G_MESSAGES_DEBUG'
]
=
'all'
if
app
.
get_debug_mode
():
# Redirect has to happen before logging init
self
.
_cleanup_debug_logs
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment