From da4b852773cbb866a45114d3b1ee0488007d0dcb Mon Sep 17 00:00:00 2001 From: Ludovic Marcotte Date: Thu, 16 Sep 2010 12:42:47 +0000 Subject: [PATCH] We now show the MISMATCH messages only when debugging is enabled Monotone-Parent: 0bf76f3e9fbac283fc0390e74b1e27d8d12c23c7 Monotone-Revision: 2beb673f2d4abc8e4ea6eb827ec51bd6371423b6 Monotone-Author: ludovic@Sophos.ca Monotone-Date: 2010-09-16T12:42:47 Monotone-Branch: ca.inverse.sogo --- SOPE/GDLContentStore/GCSChannelManager.m | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/SOPE/GDLContentStore/GCSChannelManager.m b/SOPE/GDLContentStore/GCSChannelManager.m index d77707743..62a395e71 100644 --- a/SOPE/GDLContentStore/GCSChannelManager.m +++ b/SOPE/GDLContentStore/GCSChannelManager.m @@ -548,22 +548,22 @@ static NSTimeInterval ChannelCollectionTimer = 5 * 60; { if ([[url port] intValue] == [[_url port] intValue]) result = YES; - else + else if (debugOn) [self logWithFormat: @"MISMATCH: different port (%@ vs %@) ..", [url port], [_url port]]; } - else + else if (debugOn) [self logWithFormat: @"MISMATCH: different user .."]; } - else + else if (debugOn) [self logWithFormat: @"MISMATCH: different db .."]; } - else + else if (debugOn) [self logWithFormat: @"MISMATCH: different host (%@ vs %@) ", [url host], [_url host]]; } - else + else if (debugOn) [self logWithFormat: @"MISMATCH: no url .."]; return result;