Flood of log messages about USB over-current

So on my Notebook I noticed I was getting a flood of these frickin' messages;

I mean like 5 a second, over and over and … and …

Googl'ed this madness and found no good answer, so I thought I would take an extreme approach and just have Syslog-ng just not log it!

Add this to your destination collection in /etc/syslog-ng.conf;

destination nowhere { file("/dev/null"); };

Then add this to the filter section;

filter f_usb_occ { match("over-current change"); };

Then finally add this to the log section;

log { source(src); filter(f_usb_occ); destination(nowhere); flags(final); );

Restart Syslog-ng and viola! no more logging of that irrating message. woot!





Leave a Reply