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
maint-2.0.2
Ludovic Marcotte 2010-09-16 12:42:47 +00:00
parent c33e030588
commit da4b852773
1 changed files with 5 additions and 5 deletions

View File

@ -548,22 +548,22 @@ static NSTimeInterval ChannelCollectionTimer = 5 * 60;
{ {
if ([[url port] intValue] == [[_url port] intValue]) if ([[url port] intValue] == [[_url port] intValue])
result = YES; result = YES;
else else if (debugOn)
[self logWithFormat: [self logWithFormat:
@"MISMATCH: different port (%@ vs %@) ..", @"MISMATCH: different port (%@ vs %@) ..",
[url port], [_url port]]; [url port], [_url port]];
} }
else else if (debugOn)
[self logWithFormat: @"MISMATCH: different user .."]; [self logWithFormat: @"MISMATCH: different user .."];
} }
else else if (debugOn)
[self logWithFormat: @"MISMATCH: different db .."]; [self logWithFormat: @"MISMATCH: different db .."];
} }
else else if (debugOn)
[self logWithFormat: @"MISMATCH: different host (%@ vs %@) ", [self logWithFormat: @"MISMATCH: different host (%@ vs %@) ",
[url host], [_url host]]; [url host], [_url host]];
} }
else else if (debugOn)
[self logWithFormat: @"MISMATCH: no url .."]; [self logWithFormat: @"MISMATCH: no url .."];
return result; return result;