Minor fix to log printing