[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Suppress error message to log files



Hi,

On Mon, Feb 04, 2019 at 02:42:51PM -0600, selsyn@midwest.net wrote:
> Play one game and 
> 
> This entry found in /var/log/{messages,syslog,user.log}:
> Jan 26 00:55:23 debian quadrapassel[5542]: ../../../../../gdk/x11/gdkwindow-x11.c:5611 
>     drawable is not a native X11 window

[…]

> How do I suppress the posting of this "error".

Assuming rsyslog, you can make rsyslog ignore it and then it will never
be logged. For example:

$ cat /etc/rsyslog.d/ignore-quadrapassel-gdkwindow-spam.conf
if $programname == 'quadrapassel' then {
    if $msg contains "drawable is not a native X11 window" then stop
}

Restart rsyslog afterwards:

# systemctl restart rsyslog

But probably it would be better to report the bug in
quadrapassel if it hasn't already been reported.

Cheers,
Andy

-- 
https://bitfolk.com/ -- No-nonsense VPS hosting


Reply to: