opt.task = task
opt.callback = function(err, data)
if err then
- logger.errx(task, 'cannot upload script to %s: %s',
- opt.upstream:get_addr(), err)
+ logger.errx(task, 'cannot upload script to %s: %s; registered from: %s:%s',
+ opt.upstream:get_addr(), err, script.caller.short_src, script.caller.currentline)
opt.upstream:fail()
script.fatal_error = err
else
opt.ev_base = ev_base
opt.callback = function(err, data)
if err then
- logger.errx(cfg, 'cannot upload script to %s: %s',
- opt.upstream:get_addr(), err)
+ logger.errx(cfg, 'cannot upload script to %s: %s; registered from: %s:%s',
+ opt.upstream:get_addr(), err, script.caller.short_src, script.caller.currentline)
opt.upstream:fail()
script.fatal_error = err
else
end
local function add_redis_script(script, redis_params)
+ local caller = debug.getinfo(2)
+
local new_script = {
+ caller = caller,
loaded = false,
redis_params = redis_params,
script = script,