log the log id, and clean up the log id size code slightly