Fixed input error

logwrite has an input error where I was treating it as if it had a
header field.