Bug 34916 - Не работает --debug с Qt5
Summary: Не работает --debug с Qt5
Status: CLOSED NOTABUG
Alias: None
Product: Sisyphus
Classification: Development
Component: x2goclient (show other bugs)
Version: unstable
Hardware: all Linux
: P3 normal
Assignee: Sergey V Turchin
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-16 14:47 MSK by Andrey Cherepanov
Modified: 2018-05-16 16:33 MSK (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Cherepanov 2018-05-16 14:47:28 MSK
После перехода на Qt5 перестал работать отладочный вывод при запуске с парамтером --debug. 

На Qt4:
$ x2goclient --debug
x2go-INFO-1> "Starting X2Go Client 4.1.1.1..."
x2go-INFO-4> "Translator: :/i18n/x2goclient_ru_ru found."
x2go-INFO-4> "Translator: :/i18n/qt_ru_ru found."
x2go-INFO-3> "Started X2Go Client."
x2go-DEBUG-../src/onmainwindow.cpp:583> "$HOME=/home/user"
...

На Qt5:
$ x2goclient --debug
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
Comment 1 Sergey V Turchin 2018-05-16 15:08:29 MSK
/etc/qt5/qtlogging.ini
Comment 2 Andrey Cherepanov 2018-05-16 16:16:51 MSK
Переопределить в программе это можно или только в ini-файле?
Comment 3 Sergey V Turchin 2018-05-16 16:33:06 MSK
Определить можно через QLoggingCategory::setFilterRules() или qInstallMessageHandler() , а переопределить -- не знаю.