summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeonah Moon <seonah1.moon@samsung.com>2017-09-18 20:20:17 +0900
committerSeonah Moon <seonah1.moon@samsung.com>2017-09-18 20:20:31 +0900
commit90e606af7fd3f63453dd423615ff03a4dacab914 (patch)
tree51eca55bd41023985596e49b79669036afc67980
parentac047f8034c13d9f4ac12f5af71489f279c0979b (diff)
downloadlibsoup-90e606af7fd3f63453dd423615ff03a4dacab914.tar.gz
libsoup-90e606af7fd3f63453dd423615ff03a4dacab914.tar.bz2
libsoup-90e606af7fd3f63453dd423615ff03a4dacab914.zip
Change-Id: Ia6f19fe45d715662f87e2c13dd8900375509e17e Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
-rw-r--r--libsoup/soup-message-io.c18
-rwxr-xr-xlibsoup/soup-message.c18
2 files changed, 35 insertions, 1 deletions
diff --git a/libsoup/soup-message-io.c b/libsoup/soup-message-io.c
index 2587a7cf..38c0826a 100644
--- a/libsoup/soup-message-io.c
+++ b/libsoup/soup-message-io.c
@@ -662,6 +662,12 @@ io_read (SoupMessage *msg, gboolean blocking,
case SOUP_MESSAGE_IO_STATE_BODY_START:
+#if ENABLE(TIZEN_DLOG)
+ uri = soup_uri_to_string(soup_message_get_uri(msg), FALSE);
+ TIZEN_LOGI("[BGN] soup_io_r_body : %s", uri);
+ g_free(uri);
+ uri = NULL;
+#endif
if (!io->body_istream) {
GInputStream *body_istream = soup_body_input_stream_new (G_INPUT_STREAM (io->istream),
io->read_encoding,
@@ -736,6 +742,12 @@ io_read (SoupMessage *msg, gboolean blocking,
blocking,
cancellable, error);
if (nread > 0) {
+#if ENABLE(TIZEN_DLOG)
+ uri = soup_uri_to_string(soup_message_get_uri(msg), FALSE);
+ TIZEN_LOGI("[EVT] soup_io_r_body : %ld bytes", nread);
+ g_free(uri);
+ uri = NULL;
+#endif
buffer->length = nread;
soup_message_body_got_chunk (io->read_body, buffer);
soup_message_got_chunk (msg, buffer);
@@ -753,6 +765,12 @@ io_read (SoupMessage *msg, gboolean blocking,
case SOUP_MESSAGE_IO_STATE_BODY_DONE:
+#if ENABLE(TIZEN_DLOG)
+ uri = soup_uri_to_string(soup_message_get_uri(msg), FALSE);
+ TIZEN_LOGI("[END] soup_io_r_body : %s", uri);
+ g_free(uri);
+ uri = NULL;
+#endif
io->read_state = SOUP_MESSAGE_IO_STATE_FINISHING;
soup_message_got_body (msg);
break;
diff --git a/libsoup/soup-message.c b/libsoup/soup-message.c
index e3111556..e307083c 100755
--- a/libsoup/soup-message.c
+++ b/libsoup/soup-message.c
@@ -1190,13 +1190,29 @@ soup_message_got_headers (SoupMessage *msg)
void
soup_message_got_chunk (SoupMessage *msg, SoupBuffer *chunk)
{
+#if ENABLE(TIZEN_DLOG)
+ char *uri = soup_uri_to_string(soup_message_get_uri(msg), FALSE);
+#endif
g_signal_emit (msg, signals[GOT_CHUNK], 0, chunk);
+#if ENABLE(TIZEN_DLOG)
+ TIZEN_LOGI("[EVT] GOT_CHUNK signal : %s", uri);
+ g_free(uri);
+ uri = NULL;
+#endif
}
void
soup_message_got_body (SoupMessage *msg)
{
+#if ENABLE(TIZEN_DLOG)
+ char *uri = soup_uri_to_string(soup_message_get_uri(msg), FALSE);
+#endif
g_signal_emit (msg, signals[GOT_BODY], 0);
+#if ENABLE(TIZEN_DLOG)
+ TIZEN_LOGI("[EVT] GOT_BODY signal : %s", uri);
+ g_free(uri);
+ uri = NULL;
+#endif
}
void
@@ -1225,7 +1241,7 @@ soup_message_finished (SoupMessage *msg)
TIZEN_LOGI("[EVT] soup_msg_fin : %s", uri);
#endif
#if ENABLE(TIZEN_PERFORMANCE_TEST_LOG)
- prctl_with_url("[EVT] soup_msg_fin : ", uri);
+ prctl_with_url("[EVT] soup_msg_fin : %s", uri);
#endif
g_free(uri);
#endif