fix logging attributes in custom handler