correcting a bug introduced by myself during logging implementation

Found this while testing for another issue. Mea maxima culpa.