The same two extra keyword arguments are passed via this `**log_info` regardless of which branch is taken above.  Maybe it would be better to just have a couple locals and avoid the `**`.  I have a vague notion that PyPy might be happier without `**`.  I don't have a benchmark to prove it, though, so this is optional.