fix botched logging