Bug 1165515 - Part 10: Convert mtransport/logging.h to use PR_LOG levels. r=ekr
authorEric Rahm <erahm@mozilla.com>
Wed, 03 Jun 2015 15:22:36 -0700
changeset 247072 2e89227e9b97dea10002e44d6ebbf8310bc2b824
parent 247071 7f92b3569d9225315185a52a0c0b7e60bf489d63
child 247073 6fe9e1095970afe85f511a0dbe6d2228d823b3a3
push id28852
push userryanvm@gmail.com
push dateThu, 04 Jun 2015 12:39:12 +0000
treeherdermozilla-central@b2ad2f9f8e53 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersekr
bugs1165515
milestone41.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1165515 - Part 10: Convert mtransport/logging.h to use PR_LOG levels. r=ekr To fit into the new structure of mozilla logging we need to remove |ML_EMERG| (it is not used) and as an interim step we need to switch from using raw integers to the new PR_LOG levels.
media/mtransport/logging.h
--- a/media/mtransport/logging.h
+++ b/media/mtransport/logging.h
@@ -7,22 +7,21 @@
 // Original author: ekr@rtfm.com
 
 #ifndef logging_h__
 #define logging_h__
 
 #include <sstream>
 #include "mozilla/Logging.h"
 
-#define ML_EMERG            1
-#define ML_ERROR            2
-#define ML_WARNING          3
-#define ML_NOTICE           4
-#define ML_INFO             5
-#define ML_DEBUG            6
+#define ML_ERROR            PR_LOG_ERROR
+#define ML_WARNING          PR_LOG_WARNING
+#define ML_NOTICE           PR_LOG_INFO
+#define ML_INFO             PR_LOG_DEBUG
+#define ML_DEBUG            PR_LOG_VERBOSE
 
 #define MOZ_MTLOG_MODULE(n) \
   static PRLogModuleInfo* getLogModule() {      \
     static PRLogModuleInfo* log;                \
     if (!log)                                   \
       log = PR_NewLogModule(n);                 \
     return log;                                 \
   }