dont log html urls if 0 urls present in data

This commit is contained in:
Pierce 2023-09-13 17:23:52 -04:00
parent fdbdfa96db
commit ceda1ebc83
No known key found for this signature in database
GPG Key ID: EC79465B0E865E47

View File

@ -31,12 +31,15 @@ local function wrapHTMLPanel( panelName )
return url
end )
CFCHTTP.LogRequest( {
noisy = true,
method = "GET",
fileLocation = stack[3],
urls = logUrls,
} )
if #logUrls > 0 then
CFCHTTP.LogRequest( {
noisy = true,
method = "GET",
fileLocation = stack[3],
urls = logUrls,
} )
end
return _G[setHTML]( self, html, ... )
end
@ -57,12 +60,14 @@ local function wrapHTMLPanel( panelName )
return url
end )
CFCHTTP.LogRequest( {
noisy = true,
method = "GET",
fileLocation = stack[3],
urls = logUrls,
} )
if #logUrls > 0 then
CFCHTTP.LogRequest( {
noisy = true,
method = "GET",
fileLocation = stack[3],
urls = logUrls,
} )
end
return _G[runJavascript]( self, js )
end