fix poisoned logging