Fix the log delivery script