small fix to logging