Modify debug macro for LOG