Bug 1227030 - Change log module to LazyLogModule with a more self-explantory name. r=seanlin
authorChih-Yi Leu <cleu@mozilla.com>
Tue, 01 Dec 2015 02:29:00 +0100
changeset 275456 097b28578f268193fc9bfbca6a1d16a66b46d445
parent 275455 407dff8daf62624a60b2c485b4e2d97217b93d78
child 275457 de4aa11eebb9f89b58a6c4b2c2e308a08f3a0a93
push idunknown
push userunknown
push dateunknown
reviewersseanlin
bugs1227030
milestone45.0a1
Bug 1227030 - Change log module to LazyLogModule with a more self-explantory name. r=seanlin
dom/presentation/PresentationSessionInfo.cpp
--- a/dom/presentation/PresentationSessionInfo.cpp
+++ b/dom/presentation/PresentationSessionInfo.cpp
@@ -33,24 +33,21 @@
 #include "nsINetworkInterface.h"
 #include "nsINetworkManager.h"
 #endif
 
 using namespace mozilla;
 using namespace mozilla::dom;
 using namespace mozilla::services;
 
-inline static PRLogModuleInfo*
-GetPresentationSessionInfoLog()
-{
-  static PRLogModuleInfo* log = PR_NewLogModule("PresentationSessionInfo");
-  return log;
-}
+
+static LazyLogModule gPresentationSessionInfoLog("PresentationSessionInfo");
+
 #undef LOG
-#define LOG(...) MOZ_LOG(GetPresentationSessionInfoLog(), mozilla::LogLevel::Error, (__VA_ARGS__))
+#define LOG(...) MOZ_LOG(gPresentationSessionInfoLog, mozilla::LogLevel::Error, (__VA_ARGS__))
 
 
 /*
  * Implementation of PresentationChannelDescription
  */
 
 namespace mozilla {
 namespace dom {