]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix lua warnings
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 25 Oct 2018 16:08:52 +0000 (17:08 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 25 Oct 2018 16:08:52 +0000 (17:08 +0100)
lualib/lua_redis.lua

index d66cfb903c940397a6e7ff572403a5300b7407b7..ef19bdeb489d6f78ab3e6e9d07966ffb9930318d 100644 (file)
@@ -627,7 +627,7 @@ local function rspamd_redis_make_request(task, redis_params, key, is_write,
 
   lutil.debugm(N, task, 'perform request to redis server' ..
       ' (host=%s, timeout=%s): cmd: %s, arguments: %s', ip_addr,
-      options.timeout, cmd, args)
+      options.timeout, options.cmd, args)
 
   local ret,conn = rspamd_redis.make_request(options)
 
@@ -715,8 +715,8 @@ local function redis_make_request_taskless(ev_base, cfg, redis_params, key,
   end
 
   lutil.debugm(N, config, 'perform taskless request to redis server' ..
-      ' (host=%s, timeout=%s): cmd: %s, arguments: %s', ip_addr,
-      options.timeout, cmd, args)
+      ' (host=%s, timeout=%s): cmd: %s, arguments: %s', options.host,
+      options.timeout, options.cmd, args)
   local ret,conn = rspamd_redis.make_request(options)
   if not ret then
     logger.errx('cannot execute redis request')