summaryrefslogtreecommitdiffstats
path: root/web/api/tests
diff options
context:
space:
mode:
Diffstat (limited to 'web/api/tests')
-rw-r--r--web/api/tests/valid_urls.c2
-rw-r--r--web/api/tests/web_api.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/web/api/tests/valid_urls.c b/web/api/tests/valid_urls.c
index 8a2a87f10..764d02807 100644
--- a/web/api/tests/valid_urls.c
+++ b/web/api/tests/valid_urls.c
@@ -46,7 +46,7 @@ void repr(char *result, int result_size, char const *buf, int size)
ssize_t send(int sockfd, const void *buf, size_t len, int flags)
{
- info("Mocking send: %zu bytes\n", len);
+ netdata_log_info("Mocking send: %zu bytes\n", len);
(void)sockfd;
(void)buf;
(void)flags;
diff --git a/web/api/tests/web_api.c b/web/api/tests/web_api.c
index 93e6454ee..694929a94 100644
--- a/web/api/tests/web_api.c
+++ b/web/api/tests/web_api.c
@@ -46,7 +46,7 @@ void repr(char *result, int result_size, char const *buf, int size)
ssize_t send(int sockfd, const void *buf, size_t len, int flags)
{
- info("Mocking send: %zu bytes\n", len);
+ netdata_log_info("Mocking send: %zu bytes\n", len);
(void)sockfd;
(void)buf;
(void)flags;
@@ -85,7 +85,7 @@ int __wrap_web_client_api_request_v1(RRDHOST *host, struct web_client *w, char *
{
char url_repr[160];
repr(url_repr, sizeof(url_repr), url, strlen(url));
- info("web_client_api_request_v1(url=\"%s\")\n", url_repr);
+ netdata_log_info("web_client_api_request_v1(url=\"%s\")\n", url_repr);
check_expected_ptr(host);
check_expected_ptr(w);
check_expected_ptr(url_repr);
@@ -302,7 +302,7 @@ static void api_info(void **state)
char buffer_repr[1024];
repr(buffer_repr, sizeof(buffer_repr), def->instance->response.data->buffer,def->prefix_len);
- info("Buffer contains: %s [first %zu]", buffer_repr,def->prefix_len);
+ netdata_log_info("Buffer contains: %s [first %zu]", buffer_repr,def->prefix_len);
if (def->prefix_len == def->full_len) {
expect_value(__wrap_web_client_api_request_v1, host, localhost);
expect_value(__wrap_web_client_api_request_v1, w, def->instance);