Changed logging in persist to use the lws logging module