Fix log rotation scheduling bug