bug 583636 make cookie logging work in release builds

r=dwitte a=dbaron

--HG--
extra : rebase_source : 98390eebae433930799ebe4d70bce5bb9667232f
This commit is contained in:
Christian Biesinger 2010-08-07 17:33:09 +02:00
parent a6d7d9055f
commit 9e52ebaa8a

View File

@ -39,6 +39,12 @@
* *
* ***** END LICENSE BLOCK ***** */ * ***** 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 #ifdef MOZ_IPC
#include "mozilla/net/CookieServiceChild.h" #include "mozilla/net/CookieServiceChild.h"
#include "mozilla/net/NeckoCommon.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_MODULES=cookie:4 -- shows accepted and rejected cookies
// set NSPR_LOG_FILE=cookie.log // 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" #include "prlog.h"
#endif #endif