[wpkg-users] wpkg.js crashing?

Brian May brian at vpac.org
Tue Apr 22 01:45:40 CEST 2008


Rainer Meier wrote:
>> - log to event log
>>    - log to log file if event log throws an exception
>>      - log to STDOUT/STDERR if even logfile writing fails

Sounds good. I guess the question is: if all logging fails, do we 
continue anyway, or abort?

There are probably pros/cons either way, just as long as what ever is 
decided is clearly documented, I am happy.

> I created a bug report to keep track of this issue: 
> <http://bugzilla.wpkg.org/show_bug.cgi?id=109>

Great! Will read that next...

> Your change have been slightly modified.

Good!

> It is not necessary to manually 
> write to the log file as the following code will do that as well as 
> appropriate (depending on log level). But re-trying to write to a 
> failing event log on each log entry (and printing a message about the 
> failure) is an overhead. So I remember the failing status and keep 
> printing to STDOUT in addition to writing to the log file.

Yes, this is better.

> You could try the updated versions and report your findings to Bugzilla.

Will do so.

Brian May




More information about the wpkg-users mailing list