From: Marc M. <ma...@me...> - 2009-07-25 17:17:07
|
On Fri, Jul 24, 2009 at 10:43:09PM -0700, Marc MERLIN wrote: > On Fri, Jul 24, 2009 at 05:29:34PM -0700, Marc MERLIN wrote: > > If I put a warn in Omnistat.pm, I get: > > 24/07/2009 16:37:27 Oops2: 24/07/2009 16:37:27 : Omnistat->send_cmd did not get ack reply to command AAÔ () at /var/local/src/misterhouse/mh-svn/bin/../lib/Omnistat.pm line 459. > > in the console, but nothing in the logs. > > > > Should I use print_log instead of warn, or is there something better? > > Come to think of it, I guess I could use die since mh seems to catch it and > restart the module anyway. > > Does that sound right? It did sound right, but it's not :( If you die a few times, the main mh loop disables the code, which isn't unexpected. So, back to looking for a good warn equivalent :) Marc -- "A mouse is a device used to point at the xterm you want to type in" - A.S.R. Microsoft is to operating systems & security .... .... what McDonalds is to gourmet cooking Home page: http://marc.merlins.org/ |