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

Re: [php-weathermap] Best method to silence Errors?



On 06/10/2010 11:26 AM, Howard Jones wrote:
On 10/06/2010 16:14, Patrick wrote:
Hey all,
I've gotten weathermap running along happily, but due to an error retrieving data last night, weathermap had a bit of a hissy fit and threw a ton of errors until the issue was resolved.

The issue was detected via another method and the error messages didn't provide any insight into the issue.

Is there a config option/parameter to make it run in silent mode and suppress any messages?

The obvious answer is to fix the error :-)

Well, if it's in crontab, add
 2>&1 > /dev/null
to the end of the line. But then you'll never know you have a problem.

What kind of errors though? I'm always keen to improve error messages...

Howie

WARNING: configs/networkmap: ReadData: LINK procurve-3-procurve-4, target: /var/lib/hobbit/rrd/procurve-3/if_load.48.rrd:ds0:ds1 on config line 118 of configs/networkmap had no valid data, according to WeatherMapDataSource_rrd

We had an issue where data collection crashed.

I know about dumping it to /dev/null, but I have always considered that cludgey and you can run into other issues with it.   If there's no options in the program, I guess that's the best solution though.


Copyright 1994-2005, by Howard Jones. howie@thingy.com