fix typo in logger

also slight cleanup