|
@@ -128,9 +128,9 @@ function Util:get_public_key(keyId)
|
128
|
128
|
local content = self.cache:get(keyId);
|
129
|
129
|
if content == nil then
|
130
|
130
|
-- If the key is not found in the cache.
|
131
|
|
- module:log("debug", "Cache miss for key: "..keyId);
|
|
131
|
+ module:log("debug", "Cache miss for key: %s", keyId);
|
132
|
132
|
local keyurl = path.join(self.asapKeyServer, hex.to(sha256(keyId))..'.pem');
|
133
|
|
- module:log("debug", "Fetching public key from: "..keyurl);
|
|
133
|
+ module:log("debug", "Fetching public key from: %s", keyurl);
|
134
|
134
|
content = http_get_with_retry(keyurl, nr_retries);
|
135
|
135
|
if content ~= nil then
|
136
|
136
|
self.cache:set(keyId, content);
|
|
@@ -138,7 +138,7 @@ function Util:get_public_key(keyId)
|
138
|
138
|
return content;
|
139
|
139
|
else
|
140
|
140
|
-- If the key is in the cache, use it.
|
141
|
|
- module:log("debug", "Cache hit for key: "..keyId);
|
|
141
|
+ module:log("debug", "Cache hit for key: %s", keyId);
|
142
|
142
|
return content;
|
143
|
143
|
end
|
144
|
144
|
end
|