From: Kim Yunhan <spbear@gmail.com>
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 1 Nov 2011 02:25:14 +0000 (02:25 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 1 Nov 2011 02:25:14 +0000 (02:25 +0000)
Subject: [E-devel] Small patch with ecore_con_url.

When I tested with elementary map, there is too many logs on console.
It makes me difficult to distinguish normal logs that I want to debug.
:'-(
It's libcurl's internal log for representing progress bar like this.

-----
downloaded : 343 / 363
  % Total    % Received % Xferd  Average Speed   Time    Time     Time
   Current
                                    Dload  Upload   Total   Spent
Left
 Speed
   0     0    0     0    0     0      0      0 --:--:-- --:--:--
--:--:--
  0
  downloaded : 343 / 362
    % Total    % Received % Xferd  Average Speed   Time    Time     Time
     Current
                                      Dload  Upload   Total   Spent
Left
 Speed
   0     0    0     0    0     0      0      0 --:--:-- --:--:--
--:--:--
  0
  downloaded : 343 / 361
    % Total    % Received % Xferd  Average Speed   Time    Time     Time
     Current
                                      Dload  Upload   Total   Spent
Left
 Speed
   0     0    0     0    0     0      0      0 --:--:-- --:--:--
--:--:--
  0
  downloaded : 344 / 365
  downloaded : 345 / 365
  downloaded : 346 / 365
  downloaded : 347 / 365
  -----

  So, I want to remove this log.
  And I look around ecore_con_url's code.
  Then I found solution for it.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@64596 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

AUTHORS
src/lib/ecore_con/ecore_con_url.c

diff --git a/AUTHORS b/AUTHORS
index eb4cda9..0ab54f1 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -44,3 +44,4 @@ Christopher 'devilhorns' Michael <cpmichael1@comcast.net>
 ChunEon Park <hermet@hermet.pe.kr>
 xlopez@igalia.com
 Rafael Antognolli <antognolli@profusion.mobi>
+Kim Yunhan <spbear@gmail.com>
index d94e000..912d87f 100644 (file)
@@ -355,6 +355,7 @@ ecore_con_url_free(Ecore_Con_Url *url_con)
         // FIXME: For an unknown reason, progress continue to arrive after destruction
         // this prevent any further call to the callback.
         curl_easy_setopt(url_con->curl_easy, CURLOPT_PROGRESSFUNCTION, NULL);
+        curl_easy_setopt(url_con->curl_easy, CURLOPT_NOPROGRESS, EINA_TRUE);
 
         if (url_con->active)
           {