Changed code to log to status.log instead of error.log