bfdi533 has asked for the wisdom of the Perl Monks concerning the following question:
I have a piece of code that I did not write that uses POE to monitor Jabber traffic and log it to a database. From time-to-time (about once a day) the database connection is broken and the software stops functioning. I need to be able to debug this somehow and a) determine what is happening with the MySQL connection and b) make it re-connect on its own rather than having to restart it regularly using cron.
Specifically, the POE modules involved are:
use POE::Preprocessor; use POE qw/ Component::Jabber::Client::J2 Component::Jabber::Error/; use POE::Filter::XML::Node; use POE::Filter::XML::NS qw/ :JABBER :IQ /;
Can anyone give me any pointers on debugging POE code? I know absolutely nothing about POE except that it is message/event based. Beyond that, I haven't a clue on where to start.
Thanks in advance.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: debugging POE and MySQL connections
by displeaser (Hermit) on Mar 30, 2006 at 11:21 UTC | |
|
Re: debugging POE and MySQL connections
by rcaputo (Chaplain) on Mar 30, 2006 at 16:57 UTC | |
by bfdi533 (Friar) on Mar 31, 2006 at 19:16 UTC |