We've tried about everything else, so try switching the two function calls. Call getPage() first, then logFile().