Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Default to only log in debug builds.

  • Loading branch information...
commit 911fd89eae983f0acacc4a1b8d1f5e4ce1eea452 1 parent 64f8b6d
@crayment crayment authored
Showing with 8 additions and 2 deletions.
  1. +8 −2 Source/CoreData+MagicalRecord.h
View
10 Source/CoreData+MagicalRecord.h
@@ -4,9 +4,15 @@
#define kCreateNewCoordinatorOnBackgroundOperations 0
-#define ENABLE_ACTIVE_RECORD_LOGGING
+#ifndef MR_ENABLE_ACTIVE_RECORD_LOGGING
+ #ifdef DEBUG
+ #define MR_ENABLE_ACTIVE_RECORD_LOGGING 1
+ #else
+ #define MR_ENABLE_ACTIVE_RECORD_LOGGING 0
+ #endif
+#endif
-#ifdef ENABLE_ACTIVE_RECORD_LOGGING
+#if MR_ENABLE_ACTIVE_RECORD_LOGGING
#ifdef LOG_VERBOSE
#define MRLog(...) DDLogVerbose(__VA_ARGS__)
#else
Please sign in to comment.
Something went wrong with that request. Please try again.