OSDN Git Service

Remove streaming URI from default logs
authorDavid Williams <david.williams@sonymobile.com>
Thu, 6 Sep 2012 14:33:38 +0000 (16:33 +0200)
committerHidenari Koshimae <hidenari.koshimae@sonymobile.com>
Mon, 10 Mar 2014 02:38:55 +0000 (11:38 +0900)
Streaming URI should not be visible in default logcat logs

Change-Id: I104cc56b5335f8c5621013e4c5be8028f0379833

media/libstagefright/httplive/LiveSession.cpp
media/libstagefright/httplive/M3UParser.cpp
media/libstagefright/rtsp/ARTSPConnection.cpp
media/libstagefright/rtsp/MyHandler.h
media/libstagefright/rtsp/SDPLoader.cpp

index fc1353a..bdf5787 100644 (file)
@@ -400,7 +400,7 @@ void LiveSession::onConnect(const sp<AMessage> &msg) {
     mPlaylist = fetchPlaylist(url.c_str(), NULL /* curPlaylistHash */, &dummy);
 
     if (mPlaylist == NULL) {
-        ALOGE("unable to fetch master playlist '%s'.", url.c_str());
+        ALOGE("unable to fetch master playlist <URL suppressed>.");
 
         postPrepared(ERROR_IO);
         return;
index 5ef7c0f..0f390c3 100644 (file)
@@ -780,8 +780,7 @@ status_t M3UParser::parseCipherInfo(
                 if (MakeURL(baseURI.c_str(), val.c_str(), &absURI)) {
                     val = absURI;
                 } else {
-                    ALOGE("failed to make absolute url for '%s'.",
-                         val.c_str());
+                    ALOGE("failed to make absolute url for <URL suppressed>.");
                 }
             }
 
index efde7a9..492bd4a 100644 (file)
@@ -239,7 +239,7 @@ void ARTSPConnection::onConnect(const sp<AMessage> &msg) {
         // right here, since we currently have no way of asking the user
         // for this information.
 
-        ALOGE("Malformed rtsp url %s", url.c_str());
+        ALOGE("Malformed rtsp url <URL suppressed>");
 
         reply->setInt32("result", ERROR_MALFORMED);
         reply->post();
index cd77aa0..1093b47 100644 (file)
@@ -149,7 +149,7 @@ struct MyHandler : public AHandler {
             mSessionURL.append(StringPrintf("%u", port));
             mSessionURL.append(path);
 
-            ALOGI("rewritten session url: '%s'", mSessionURL.c_str());
+            ALOGV("rewritten session url: '%s'", mSessionURL.c_str());
         }
 
         mSessionHost = host;
index ed3fa7e..3c7d82a 100644 (file)
@@ -95,7 +95,7 @@ void SDPLoader::onLoad(const sp<AMessage> &msg) {
     msg->findPointer("headers", (void **)&headers);
 
     if (!(mFlags & kFlagIncognito)) {
-        ALOGI("onLoad '%s'", url.c_str());
+        ALOGV("onLoad '%s'", url.c_str());
     } else {
         ALOGI("onLoad <URL suppressed>");
     }