Write out a log that might let us reproduce errors. Running the last function doesn't seem sufficient to reproduce the bugs we've hit so far.