Made the error_log on update only log when desired.