Bug 795897 - Force NSPR logging for cache module in release build, r=jduell

This commit is contained in:
Michal Novotny 2012-11-22 02:14:00 +01:00
parent 772eb2c0c3
commit ab68f3ae01
8 changed files with 12 additions and 8 deletions

View File

@ -15,12 +15,16 @@
#define FORCE_PR_LOG #define FORCE_PR_LOG
#endif #endif
#if defined(PR_LOG)
#error "If nsCache.h #included it must come before any files that #include prlog.h"
#endif
#include "prlog.h"
#include "nsISupports.h" #include "nsISupports.h"
#include "nsIFile.h" #include "nsIFile.h"
#include "nsAString.h" #include "nsAString.h"
#include "prtime.h" #include "prtime.h"
#include "nsError.h" #include "nsError.h"
#include "prlog.h"
// PR_LOG args = "format string", arg, arg, ... // PR_LOG args = "format string", arg, arg, ...
#if defined(PR_LOGGING) #if defined(PR_LOGGING)

View File

@ -5,6 +5,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nsCache.h"
#include "nspr.h" #include "nspr.h"
#include "nsCacheEntry.h" #include "nsCacheEntry.h"
#include "nsCacheEntryDescriptor.h" #include "nsCacheEntryDescriptor.h"
@ -13,7 +14,6 @@
#include "nsThreadUtils.h" #include "nsThreadUtils.h"
#include "nsError.h" #include "nsError.h"
#include "nsICacheService.h" #include "nsICacheService.h"
#include "nsCache.h"
#include "nsCacheService.h" #include "nsCacheService.h"
#include "nsCacheDevice.h" #include "nsCacheDevice.h"
#include "nsHashKeys.h" #include "nsHashKeys.h"

View File

@ -4,6 +4,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nsCache.h"
#include <limits.h> #include <limits.h>
#include "nscore.h" #include "nscore.h"

View File

@ -4,6 +4,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nsCache.h"
#include <limits.h> #include <limits.h>
// include files for ftruncate (or equivalent) // include files for ftruncate (or equivalent)
@ -32,7 +33,6 @@
#include "nsDiskCache.h" #include "nsDiskCache.h"
#include "nsCacheService.h" #include "nsCacheService.h"
#include "nsCache.h"
#include "nsDeleteDir.h" #include "nsDeleteDir.h"

View File

@ -4,13 +4,12 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nsCache.h"
#include "nsDiskCache.h" #include "nsDiskCache.h"
#include "nsDiskCacheEntry.h" #include "nsDiskCacheEntry.h"
#include "nsDiskCacheBinding.h" #include "nsDiskCacheBinding.h"
#include "nsCRT.h" #include "nsCRT.h"
#include "nsCache.h"
#include "nsISerializable.h" #include "nsISerializable.h"
#include "nsSerializationHelper.h" #include "nsSerializationHelper.h"

View File

@ -4,14 +4,13 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nsCache.h"
#include "nsDiskCacheMap.h" #include "nsDiskCacheMap.h"
#include "nsDiskCacheBinding.h" #include "nsDiskCacheBinding.h"
#include "nsDiskCacheEntry.h" #include "nsDiskCacheEntry.h"
#include "nsDiskCacheDevice.h" #include "nsDiskCacheDevice.h"
#include "nsCacheService.h" #include "nsCacheService.h"
#include "nsCache.h"
#include <string.h> #include <string.h>
#include "nsPrintfCString.h" #include "nsPrintfCString.h"

View File

@ -5,6 +5,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nsCache.h"
#include "nsDiskCache.h" #include "nsDiskCache.h"
#include "nsDiskCacheDevice.h" #include "nsDiskCacheDevice.h"
#include "nsDiskCacheStreams.h" #include "nsDiskCacheStreams.h"

View File

@ -4,13 +4,13 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nsCache.h"
#include "nsMemoryCacheDevice.h" #include "nsMemoryCacheDevice.h"
#include "nsCacheService.h" #include "nsCacheService.h"
#include "nsICacheService.h" #include "nsICacheService.h"
#include "nsIStorageStream.h" #include "nsIStorageStream.h"
#include "nsICacheVisitor.h" #include "nsICacheVisitor.h"
#include "nsCRT.h" #include "nsCRT.h"
#include "nsCache.h"
#include "nsReadableUtils.h" #include "nsReadableUtils.h"
#include "mozilla/Telemetry.h" #include "mozilla/Telemetry.h"