change warn log when forbidden to add method attr