From b59e1148760de8cf47f0be285b6924b8ec568d85 Mon Sep 17 00:00:00 2001 From: Chris Streeter Date: Mon, 4 Aug 2014 22:05:40 -0700 Subject: [PATCH] Do not log if DEBUG != 1 We might define DEBUG to be 0, to disable it. This explicitly requires that DEBUG be defined and 1. --- RMStore/RMStore.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RMStore/RMStore.m b/RMStore/RMStore.m index 9332f478..d8486a51 100755 --- a/RMStore/RMStore.m +++ b/RMStore/RMStore.m @@ -48,7 +48,7 @@ NSString* const RMStoreNotificationStoreReceipt = @"storeReceipt"; NSString* const RMStoreNotificationTransaction = @"transaction"; -#ifdef DEBUG +#if defined(DEBUG) && DEBUG #define RMStoreLog(...) NSLog(@"RMStore: %@", [NSString stringWithFormat:__VA_ARGS__]); #else #define RMStoreLog(...)