error logging for data saving