more robust kafka logging