Adding small hook creation info log.

This commit is contained in:
FireSiku 2018-06-08 03:01:28 -04:00
parent 4af4cd5f75
commit 0380e9f4a8

View file

@ -198,6 +198,7 @@ local function create_internal_hook(orig, obj, method)
end end
local function create_hook(self, orig, obj, method, handler, func_name, hook_type) local function create_hook(self, orig, obj, method, handler, func_name, hook_type)
self:info("(%s): Hooking '%s' from [%s] (Origin: %s)", func_name, method, obj or "_G", orig)
if not is_orig_hooked(obj, method) then if not is_orig_hooked(obj, method) then
create_internal_hook(orig, obj, method) create_internal_hook(orig, obj, method)