[wpkg-users] wpkg.js crashing?

Rainer Meier r.meier at wpkg.org
Mon Apr 21 23:57:09 CEST 2008


Rainer Meier wrote:
> Well, I think you're right regarding this issue. However to log events 
> to any facility (STDERR, log file, event log...) you have to rely on 
> certain system resources and API calls. I will try to improve the error 
> handling as much as possible and try establish the following priority:
> 
> - log to event log
>    - log to log file if event log throws an exception
>      - log to STDOUT/STDERR if even logfile writing fails

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

Fixes based on your proposal are available already (attached to the bug 
report):
- WPKG 1.0.2
- WPKG 1.1.0-M5

Your change have been slightly modified. 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.

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

Thanks for your support and patience.


br,
Rainer



More information about the wpkg-users mailing list