Better logging for amaint-jms.pl