Update helper/log.php

Typo in log.php: we don't check the remaining size correctly...