Make sure log timestamps have uniform length.

 Cleanup some code nearby while we're at it.