Solve an error usage of cocos.Logging.warning().