Add Doctrine connection check before log. Fix message column type.