Fix to logger bug.

Need @mattfarina to look at this.