[noticket] Fix for error logging.