summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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