minor fix in printing log variables.