Bug 1353668. P2 - remove RESOURCE_LOG. draft
authorJW Wang <jwwang@mozilla.com>
Wed, 05 Apr 2017 17:27:35 +0800
changeset 556578 81f2e9b5c4add258a783a8c134c2cbf93ca6322b
parent 556577 87bc57d852e4469b758389132894348f35b7771a
child 556579 1b4638d5e3956da8c8b4eb2c2684226970aa8f0b
push id52586
push userjwwang@mozilla.com
push dateThu, 06 Apr 2017 03:05:37 +0000
bugs1353668
milestone55.0a1
Bug 1353668. P2 - remove RESOURCE_LOG. MozReview-Commit-ID: 1PelTy83ETW
dom/media/MediaResource.cpp
--- a/dom/media/MediaResource.cpp
+++ b/dom/media/MediaResource.cpp
@@ -30,21 +30,19 @@
 #include "nsHostObjectProtocolHandler.h"
 #include <algorithm>
 #include "nsProxyRelease.h"
 #include "nsIContentPolicy.h"
 
 using mozilla::media::TimeUnit;
 
 mozilla::LazyLogModule gMediaResourceLog("MediaResource");
-#define RESOURCE_LOG(msg, ...) MOZ_LOG(gMediaResourceLog, mozilla::LogLevel::Debug, \
-                                      (msg, ##__VA_ARGS__))
 // Debug logging macro with object pointer and class name.
-#define CMLOG(msg, ...) \
-        RESOURCE_LOG("%p [ChannelMediaResource]: " msg, this, ##__VA_ARGS__)
+#define CMLOG(msg, ...) MOZ_LOG(gMediaResourceLog, mozilla::LogLevel::Debug, \
+  ("%p " msg, this, ##__VA_ARGS__))
 
 static const uint32_t HTTP_OK_CODE = 200;
 static const uint32_t HTTP_PARTIAL_RESPONSE_CODE = 206;
 
 namespace mozilla {
 
 void
 MediaResource::Destroy()