Added more logging to server.pl