Skip to content

Commit

Permalink
Use logger for functions mapping debug messages (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
uncleNight authored Aug 25, 2022
1 parent 78ca0c8 commit 38b772c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion codegen/rest.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ function M.create_client(config)
local ignored_fns = { create_client = true, sync = true }
for name,fn in pairs(M) do
if not ignored_fns[name] and type(fn) == "function" then
print("setting", name)
log("setting " .. name)
client[name] = function(...) return fn(client, ...) end
end
end
Expand Down
2 changes: 1 addition & 1 deletion nakama/nakama.lua
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ function M.create_client(config)
local ignored_fns = { create_client = true, sync = true }
for name,fn in pairs(M) do
if not ignored_fns[name] and type(fn) == "function" then
print("setting", name)
log("setting " .. name)
client[name] = function(...) return fn(client, ...) end
end
end
Expand Down

0 comments on commit 38b772c

Please sign in to comment.