I have been running some code for quite some time, but each time there is an eval failure, the audit log stops getting written to. The code loop continues and the eval is called again for other entries, but the audit trail in the file stops dead. The messages are still printed to the screen, but just not to the log file. I open and close the file handle for each set of messages, so even a buffering problem shouldn't exist. This is running on Windows so I am now wondering whether there is something specific about Windows that an eval interrupt effects file handles.
I've been meaning to look at Log4Perl for sometime, so perhaps now is that time, and see whether it makes a difference. I certainly haven't found anything via Google, but then I could be asking the wrong question :)
Have you tried reducing the code to the smallest portion that exhibits the problem? If that didn’t help you, can you post it?
Otherwise, all anyone can do is guess.
Re:
barbie on 2005-09-20T19:20:44
It's actually part of CPAN::YACSmoke. As such it may also be something to do with the way that CPANPLUS usesselect
. I haven't tried to reduce the code, but will try that tomorrow.