Logs fail to flush after midnight

After midnight the logs fail to flush thus throwing an error while attempting to view the log. I have to manually flush in order to get the logs to work again.

Token: wy0td2xyu9

I've enabled mail on my pi-hole (see howto section 4.8). as a result I'm getting the following mail (both for "pihole flush" and "pihole updateGravity"):

To: root
Subject: Cron root@raspberrypi pihole flush

/usr/bin/env: bash: No such file or directory

The problem is the directive in the first line of all sh scripts: #!/usr/bin/env bash
It hasn't changed from earlier releases (2.9.5) but for some reason it doesn't work anymore.
For now, you will have to run the gravity update (pihole updateGravity - weekly) and the log flush (pihole flush - daily) yourself

This has been solved and will be contained in an update that should be released soon.

The update has been released. Please run

sudo pihole -up