How does suricata react when logs files directory reaches max size?

Able to see below log, but not immediately as max size is reached. will try again.
Error: logopenfile: No space left on device error while writing to /var/log/suricata//stats.log

I will try with log rotation as well. Thank you @Andreas_Herz