Fixed unwanted text in custom logging