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.
In reply to debugging POE and MySQL connections by bfdi533
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |