/*
- * Copyright (C) 2010-2011 jeanfi@gmail.com
+ * Copyright (C) 2010-2012 jeanfi@gmail.com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, cbk_curl);
curl_easy_setopt(curl, CURLOPT_WRITEDATA, (void *)&chunk);
- log_printf(LOG_DEBUG, "HTTP request %s", url);
+ log_debug("HTTP request %s", url);
if (curl_easy_perform(curl) == CURLE_OK)
obj = json_tokener_parse(chunk.data);
else
tv.tv_usec = 0;
psensor_set_current_measure
- (s, json_object_get_double(ov), tv);;
+ (s, json_object_get_double(ov), tv);
}
json_object_put(obj);