You are not logged in.

#1 2016-06-11 15:19:26

nanohard
Member
Registered: 2016-06-10
Posts: 8

How to disable / suppress journal errors of a certain type?

I have a lot of the same errors in my journal (journalctl), and I'm not sure how to suppress those of a certain type, besides lowering what gets logged to the whole journal something below "errors", which I don't want to do.

Here are the lines I don't want to see:

Jun 11 10:33:37 PC1 plasmashell[586]: QXcbConnection: XCB error: 2 (BadValue), sequence: 27357, resource id: 35651588, major code: 142 (Unknown), minor code: 3
Jun 11 10:33:40 PC1 kwin_x11[577]: QXcbConnection: XCB error: 3 (BadWindow), sequence: 51241, resource id: 67109055, major code: 18 (ChangeProperty), minor code: 0

and I get it from plasmashell and kwin_x11.
Is there a way to suppress errors from those two programs? I read somewhere that it's related to Qt and that setting an environment variable should do it, so in my .bashrc I set:

QT_LOGGING_RULES="*.debug=false"

The problem is that there is no accepted value for error. Only: debug, info, warning, and critical, according to this doc: http://doc.qt.io/qt-5/qloggingcategory.html (ctrl+f: logging rules)
And I'm not even sure that I'm going about it the correct way, and not some ugly, mutated form of a disgusting workaround.

I'd be happy with turning off logging for both kwin_x11 and plasmashell altogether, but I can't find how.

Last edited by nanohard (2016-06-11 15:27:00)

Offline

#2 2016-06-11 15:54:51

nanohard
Member
Registered: 2016-06-10
Posts: 8

Re: How to disable / suppress journal errors of a certain type?

Well, as far as I got was to add an environment variable and append that to all journalctl commands.

export JARGS=`journalctl -F _COMM | sed -e 's/kwin_x11.*//' -e 's/plasmashell.*//' -e 's/xembedsniproxy.*//' -e 's/^/_COMM=/' | xargs`
journalctl -n50 $JARGS

While that doesn't actually solve the problem, it allows more readability for me.

Offline

#3 2016-06-22 20:40:22

whoops
Member
Registered: 2009-03-19
Posts: 891

Re: How to disable / suppress journal errors of a certain type?

I had the same problem... I think setting
QT_LOGGING_RULES='*=false'
in
/etc/environment
did the trick in the end.

( Not entirely sure though. I also messed around with the GUI programs "kdebugsettings", "kdebugdialog", "kdebugdialog5" which are supposed to be the "real right KDE" way but didn't work last time I tried them out due to some bug or something. And I did lots of random stuff I found in different threads here in the forums. Good luck! )

Last edited by whoops (2016-06-22 20:40:50)

Offline

Board footer

Powered by FluxBB