smarter toss debug logging