Bug 1165515 - Part 10: Convert mtransport/logging.h to use PR_LOG levels. r=ekr
☠☠ backed out by 3c8ed81098dd ☠ ☠
authorEric Rahm <erahm@mozilla.com>
Mon, 01 Jun 2015 22:17:27 -0700
changeset 246695 e9632ce8bc65ac746babf0d756bb22a31c0afa93
parent 246694 c16d215cc7e4c09bab6478c8bc9b4d72fae87cf5
child 246696 ac4dc7489942282ae290846dc142894d4830c11d
push id28839
push userkwierso@gmail.com
push dateWed, 03 Jun 2015 01:20:15 +0000
treeherdermozilla-central@20a96e15631a [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;                                 \
   }