plasma-applet-thermal-monitor icon indicating copy to clipboard operation
plasma-applet-thermal-monitor copied to clipboard

.xsession-errors gets spammed with qml print() output

Open Caltheron opened this issue 9 years ago • 2 comments

Qml seems to write every print() output into ~/.xsession-errors which as a result gets spammed with the like of qml: New data incomming. Source: lmsensors/it8720-isa-0228/temp1, data: 32.000000 qml: updating model with temperature: 32, key: lmsensors/it8720-isa-0228/temp1, i: 0

I'm not sure about how to fix it but would it help to use QT's console API instead?

Caltheron avatar Dec 21 '15 14:12 Caltheron

Interesting, I didn't know about qml flooding ~/.xsession-errors, thanks for the information! I'll investigate the Qt console API possibility. But in any case I should disable all logging when making a release commit. I'll do that soon.

kotelnik avatar Dec 21 '15 15:12 kotelnik

Hi! I've noticed now that my .xsession-errors log is no longer updated since late october (maybe because some KF 5.xx update?). So I cannot test if using "console.log" is avoiding the .xsession-errors or not. I can only tell that it is logging to the console as well as "print" function. That's what I've tested then.

Anyway I disabled logging in the latest release and I will only enable it locally in my repo for debugging purposes. Therefore there shouldn't be any more debug logging messages coming from this widget.

kotelnik avatar Jan 01 '16 23:01 kotelnik