It's outside of this PR, but I noticed that `params` in `_writeLogfileHelper` appears to be unused.