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:21:25 +0900
commitb0e5a8c85f81f5725dae195b7ad6aff787110b49 (patch)
tree51eca55bd41023985596e49b79669036afc67980
parentac047f8034c13d9f4ac12f5af71489f279c0979b (diff)
downloadlibsoup-b0e5a8c85f81f5725dae195b7ad6aff787110b49.tar.gz
libsoup-b0e5a8c85f81f5725dae195b7ad6aff787110b49.tar.bz2
libsoup-b0e5a8c85f81f5725dae195b7ad6aff787110b49.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