Changeset

2441:68ebc52222dc

Log URL called by http_roster_admin
author JC Brand <jc@opkode.com>
date Thu, 12 Jan 2017 09:49:32 +0000
parents 2440:7814a5c7fee8
children 2442:b2a198665946
files mod_http_roster_admin/mod_http_roster_admin.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_http_roster_admin/mod_http_roster_admin.lua	Tue Jan 10 14:11:56 2017 +0100
+++ b/mod_http_roster_admin/mod_http_roster_admin.lua	Thu Jan 12 09:49:32 2017 +0000
@@ -127,6 +127,7 @@
 function fetch_roster(username, cb)
 	local x = {headers = {}};
 	x["headers"]["ACCEPT"] = "application/json, text/plain, */*";
+	module:log("debug", "Fetching roster at URL: %s", roster_url:format(username));
 	local ok, err = http.request(
 		roster_url:format(username),
 		x,
@@ -143,7 +144,6 @@
 			cb(true, code, json.decode(roster_data));
 		end
 	);
-	module:log("debug", "fetch_roster: ok is %s", ok);
 	if not ok then
 		module:log("error", "Failed to connect to roster API at %s: %s", roster_url:format(username), err);
 		cb(false, 0, err);