fix logging error; consistent logging