small improvement in logger