<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def log_filter_url (self, url_data, do_print):
 """ Log a new url with this logger if do_print is True. Else only update accounting data. """

        self.stats.log_url(url_data, do_print)
        if do_print:
            self.log_url(url_data)