Flood of log messages about USB over-current

B3y steven 5/16/2008 11:00:00 PM

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

hub 1-0:1.0: over-current change on port 1

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!

Enjoy!

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , ,

Add comment


(Will show your Gravatar icon)  

  Country flag

biuquote
  • Comment
  • Preview
Loading



Powered By BlogEngine Enhanced with Snapshots

About the author

Steven Hildreth Steven Hildreth
Proof that anyone can setup a blog.

E-mail me LinkedIn Profile

Send mail Sign in

Recent posts