fixed logging issue

after the first day of loggging, the a new file wouldn't open up for the
next day because the new_file variable was never reset.