From b6ab64d1f23612f081068b8b7ff73be9c393326b Mon Sep 17 00:00:00 2001 From: Wouter R Date: Fri, 5 Feb 2016 15:23:40 +0100 Subject: [PATCH] Fix invalid log function calls. --- src/network/wlanconfig.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/network/wlanconfig.lua b/src/network/wlanconfig.lua index 5f626c4..b7bff30 100644 --- a/src/network/wlanconfig.lua +++ b/src/network/wlanconfig.lua @@ -27,12 +27,12 @@ local deviceName, deviceApi local cachedApSsid, baseApSsid = nil, nil function M.getSubstitutedSsid(unformattedSsid) - log:debug(MOD_ABBR, "getSubstitutedSsid unformattedSsid:'" .. (unformattedSsid or "nil") .. "' baseApSsid:'" .. (baseApSsid or "nil") .. "' cachedApSsid:'" .. (cachedApSsid or "nil")) + log:verbose(MOD_ABBR, "getSubstitutedSsid unformattedSsid:'" .. (unformattedSsid or "nil") .. "' baseApSsid:'" .. (baseApSsid or "nil") .. "' cachedApSsid:'" .. (cachedApSsid or "nil")) if unformattedSsid == baseApSsid and cachedApSsid ~= nil then return cachedApSsid end if not unformattedSsid or type(unformattedSsid) ~= 'string' then return nil end local macTail = M.getMacAddress():sub(7) - log:debug(MOD_ABBR, " macTail:'" .. macTail) + log:verbose(MOD_ABBR, " macTail:'" .. macTail) baseApSsid = unformattedSsid cachedApSsid = unformattedSsid:gsub('%%%%MAC_ADDR_TAIL%%%%', macTail) return cachedApSsid @@ -109,9 +109,9 @@ end --returns the wireless device's MAC address (as string, without colons) --(lua numbers on openWrt seem to be 32bit so they cannot represent a MAC address as one number) function M.getMacAddress() - log:debug(MOD_ABBR, "getMacAddress") + log:verbose(MOD_ABBR, "getMacAddress") local macText = utils.readFile('/sys/class/net/' .. deviceName .. '/address') - log:debug(MOD_ABBR, " macText: '" .. (macText or "nil") .. "'") + log:verbose(MOD_ABBR, " macText: '" .. (macText or "nil") .. "'") local out = '' -- Hack to prevent failure in case the MAC address could not be obtained.