diff options
author | m0gg | 2007-11-03 22:40:09 +0000 |
---|---|---|
committer | m0gg | 2007-11-03 22:40:09 +0000 |
commit | 8a6946b18003fae6400a137389f0cb13d0ac4bd6 (patch) | |
tree | 1fb0e6f58de5596f8dae00998da18472fb4952a1 /examples/nanohttp/http_client.c | |
parent | c1a7b2dabdc691139b744f0d4750f3b797b69073 (diff) | |
download | csoap-8a6946b18003fae6400a137389f0cb13d0ac4bd6.tar.gz csoap-8a6946b18003fae6400a137389f0cb13d0ac4bd6.tar.bz2 |
Split nanoHTTP and cSOAP logging
Diffstat (limited to 'examples/nanohttp/http_client.c')
-rw-r--r-- | examples/nanohttp/http_client.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/nanohttp/http_client.c b/examples/nanohttp/http_client.c index 1b9c912..adcd199 100644 --- a/examples/nanohttp/http_client.c +++ b/examples/nanohttp/http_client.c @@ -1,5 +1,5 @@ /****************************************************************** -* $Id: http_client.c,v 1.9 2006/12/10 19:21:06 m0gg Exp $ +* $Id: http_client.c,v 1.10 2007/11/03 22:40:09 m0gg Exp $ * * CSOAP Project: A http client/server library in C (example) * Copyright (C) 2003-2004 Ferhat Ayaz @@ -25,6 +25,7 @@ #include <stdlib.h> #include <string.h> +#include <nanohttp/nanohttp-logging.h> #include <nanohttp/nanohttp-client.h> #define MAX_BUFFER_SIZE 1024 @@ -105,7 +106,7 @@ int main(int argc, char **argv) } /* Set log level to see more information written by the library */ - hlog_set_level(HLOG_INFO); + nanohttp_log_set_loglevel(NANOHTTP_LOG_INFO); /* Initialize httpc module */ if (httpc_init(argc, argv)) |