fix(hook): correct a typo, self.warn doesn't exist
self.warning, self.writical, etc are added by set_log_methods, at the end of the file
--HG-- branch : 3.35
self.warning, self.writical, etc are added by set_log_methods, at the end of the file
--HG-- branch : 3.35