summaryrefslogtreecommitdiff
path: root/content/fetch.c
diff options
context:
space:
mode:
authorAshish Gupta <ashmew2@gmail.com>2017-10-25 22:25:41 +0200
committerAshish Gupta <ashmew2@gmail.com>2017-10-25 22:25:41 +0200
commit346baf80d8a0785d48a2faeae0af42258e22150d (patch)
treef4edb6511a5919556de29e621f01017655d83f61 /content/fetch.c
parentea8d49cc5da9f13baff2f44d8cf0ddde774e77bb (diff)
downloadnetsurf-346baf80d8a0785d48a2faeae0af42258e22150d.tar.gz
netsurf-346baf80d8a0785d48a2faeae0af42258e22150d.tar.bz2
Use libnslog.
Get rid of LOG() macro calls and replace with calls to NSLOG.
Diffstat (limited to 'content/fetch.c')
-rw-r--r--content/fetch.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/content/fetch.c b/content/fetch.c
index 64e639c0c..54029b3ae 100644
--- a/content/fetch.c
+++ b/content/fetch.c
@@ -65,16 +65,6 @@
#include "javascript/fetcher.h"
#include "content/urldb.h"
-/* Define this to turn on verbose fetch logging */
-#define DEBUG_FETCH_VERBOSE
-
-/** Verbose fetcher logging */
-#ifdef DEBUG_FETCH_VERBOSE
-#define FETCH_LOG(x...) LOG(x)
-#else
-#define FETCH_LOG(x...)
-#endif
-
/** The maximum number of fetchers that can be added */
#define MAX_FETCHERS 10
@@ -791,8 +781,7 @@ void fetch_remove_from_queues(struct fetch *fetch)
/* exported interface documented in content/fetch.h */
void fetch_set_http_code(struct fetch *fetch, long http_code)
{
- NSLOG(fetch, DEBUG, "Setting HTTP code to %ld", http_code);
- FETCH_LOG("Setting HTTP code to %ld for fetch 0x%x", http_code, fetch);
+ NSLOG(fetch, DEBUG, "fetch 0x%x, Setting HTTP code to %ld", fetch, http_code);
fetch->http_code = http_code;
}