From 9e52ebaa8a742d8c3efdc8d899f8730a35015bce Mon Sep 17 00:00:00 2001 From: Christian Biesinger Date: Sat, 7 Aug 2010 17:33:09 +0200 Subject: [PATCH] bug 583636 make cookie logging work in release builds r=dwitte a=dbaron --HG-- extra : rebase_source : 98390eebae433930799ebe4d70bce5bb9667232f --- netwerk/cookie/nsCookieService.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/netwerk/cookie/nsCookieService.cpp b/netwerk/cookie/nsCookieService.cpp index b5a8fb789bba..ed105a3991ad 100644 --- a/netwerk/cookie/nsCookieService.cpp +++ b/netwerk/cookie/nsCookieService.cpp @@ -39,6 +39,12 @@ * * ***** END LICENSE BLOCK ***** */ + +#ifdef MOZ_LOGGING +// this next define has to appear before the include of prlog.h +#define FORCE_PR_LOG // Allow logging in the release build +#endif + #ifdef MOZ_IPC #include "mozilla/net/CookieServiceChild.h" #include "mozilla/net/NeckoCommon.h" @@ -204,8 +210,6 @@ struct nsEnumerationData // set NSPR_LOG_MODULES=cookie:4 -- shows accepted and rejected cookies // set NSPR_LOG_FILE=cookie.log // -// this next define has to appear before the include of prlog.h -#define FORCE_PR_LOG // Allow logging in the release build #include "prlog.h" #endif