{"action":"created","issue":{"url":"https://api.github.com/repos/kotelnik/plasma-applet-thermal-monitor/issues/14","labels_url":"https://api.github.com/repos/kotelnik/plasma-applet-thermal-monitor/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/kotelnik/plasma-applet-thermal-monitor/issues/14/comments","events_url":"https://api.github.com/repos/kotelnik/plasma-applet-thermal-monitor/issues/14/events","html_url":"https://github.com/kotelnik/plasma-applet-thermal-monitor/issues/14","id":123293011,"number":14,"title":".xsession-errors gets spammed with qml print() output","user":{"login":"Caltheron","id":16386290,"avatar_url":"https://avatars.githubusercontent.com/u/16386290?v=3","gravatar_id":"","url":"https://api.github.com/users/Caltheron","html_url":"https://github.com/Caltheron","followers_url":"https://api.github.com/users/Caltheron/followers","following_url":"https://api.github.com/users/Caltheron/following{/other_user}","gists_url":"https://api.github.com/users/Caltheron/gists{/gist_id}","starred_url":"https://api.github.com/users/Caltheron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Caltheron/subscriptions","organizations_url":"https://api.github.com/users/Caltheron/orgs","repos_url":"https://api.github.com/users/Caltheron/repos","events_url":"https://api.github.com/users/Caltheron/events{/privacy}","received_events_url":"https://api.github.com/users/Caltheron/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-21T14:53:05Z","updated_at":"2016-01-01T23:38:15Z","closed_at":null,"body":"Qml seems to write every print() output into ~/.xsession-errors which as a result gets spammed with the like of\r\n<code>qml: New data incomming. Source: lmsensors/it8720-isa-0228/temp1, data: 32.000000</code>\r\n<code>qml: updating model with temperature: 32, key: lmsensors/it8720-isa-0228/temp1, i: 0</code>\r\n\r\nI'm not sure about how to fix it but would it help to use [QT's console API](https://doc.qt.io/qt-5/qtquick-debugging.html) instead?\r\n"},"comment":{"url":"https://api.github.com/repos/kotelnik/plasma-applet-thermal-monitor/issues/comments/168350769","html_url":"https://github.com/kotelnik/plasma-applet-thermal-monitor/issues/14#issuecomment-168350769","issue_url":"https://api.github.com/repos/kotelnik/plasma-applet-thermal-monitor/issues/14","id":168350769,"user":{"login":"kotelnik","id":1174734,"avatar_url":"https://avatars.githubusercontent.com/u/1174734?v=3","gravatar_id":"","url":"https://api.github.com/users/kotelnik","html_url":"https://github.com/kotelnik","followers_url":"https://api.github.com/users/kotelnik/followers","following_url":"https://api.github.com/users/kotelnik/following{/other_user}","gists_url":"https://api.github.com/users/kotelnik/gists{/gist_id}","starred_url":"https://api.github.com/users/kotelnik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kotelnik/subscriptions","organizations_url":"https://api.github.com/users/kotelnik/orgs","repos_url":"https://api.github.com/users/kotelnik/repos","events_url":"https://api.github.com/users/kotelnik/events{/privacy}","received_events_url":"https://api.github.com/users/kotelnik/received_events","type":"User","site_admin":false},"created_at":"2016-01-01T23:38:15Z","updated_at":"2016-01-01T23:38:15Z","body":"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.\r\n\r\nAnyway 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."}}